自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 pip换源

1.touch~/.pip/pip.confchmod 600~/.pip/pip.conf没.pip要先创建.pip2.内容为:[global]timeout = 6000index-url = https://pypi.tuna.tsinghua.edu.cn/simpletrusted-host = pypi.tuna.tsinghua.edu.cn3.阿里云 http://mirrors.aliyun.com/pypi/simple/中国科技大学 https..

2020-12-21 11:54:17 160

原创 缺少authorized_keys文件

touch~/.ssh/authorized_keyschmod 600~/.ssh/authorized_keys没.ssh要先创建.ssh

2020-12-21 11:31:53 6892

原创 debian vim设置使用鼠标直接选择并复制

1.vim /usr/share/vim/vim80/defaults.vim2.将set mouse=a改为:set mouse-=a

2020-12-21 11:30:03 609

原创 pip相关

安装多个包1. 只需将它们作为空格分隔的列表传递,如pip install pkg1 pkg22.pip install -r requirements.txt在requments.txt文件中,您将模块放在一个列表中,每一行只有一项。升级pip3 install --upgrade pip安装指定版本的包pip install pgk==2.8.7安装gitpip3 install git+地址.git...

2020-12-21 11:21:34 237 3

原创 sql_mode查看设置

select @@global.sql_mode;SET sql_mode ='';

2020-12-21 11:08:36 924

原创 对工厂方法模式的理解

对工厂方法模式的理解

2017-02-09 14:14:52 304

原创 对简单工厂的理解

对简单工厂的理解

2017-02-09 14:13:54 373

原创 自己对装饰者模式的理解

自己对装饰者模式的理解

2017-02-09 14:12:26 265

原创 自己对观察者模式的理解

自己对观察者模式的理解

2017-02-09 14:10:30 362

原创 自己对于策略模式的理解

自己对于策略模式的理解

2017-02-09 14:08:58 258

原创 二叉树

#include //Status是函数的类型,其值是函数结果状态代码 typedef int Status;//TELemtType是树存放的值的数据类型 typedef int TElemtType;//二叉树的二叉链表存储表示 typedef struct BTNode{TElemtType data;struct BTNode *lchild

2017-02-08 16:02:23 249

原创 泛型编程实现双向链表

#ifndef _DULLIST_H_#define _DULLIST_H_#include using namespace std;templateclass Node{public:T data;Node *next;Node *prior;};templateclass DulList{public:DulList();

2017-02-08 15:57:40 354

原创 泛型编程实现链表

泛型编程实现链表#ifndef _LIST_H_#define _LIST_H_#include using namespace std;templateclass Node{public:T data;Node *next;};templateclass List{public:List();~List();vo

2017-02-08 15:54:38 286

原创 泛型编程实现队列

#ifndef _QUEUE_H_#define _QUEUE_H_templateclass Node{public:T data;Node *next;};templateclass Queue{public:Queue(){front = rear = nullptr;size = 0;}~Queue(){

2017-02-08 15:51:35 948

原创 泛型编程实现堆栈

泛型编程实现堆栈#ifndef _STACK_H_#define _STACK_H_#include #include using namespace std;const int STACK_INIT_SIZE = 1;const int ADD_SIZE = 10;templateclass Stack{public:Stack();~St

2017-02-08 15:47:11 340

原创 cocos2d-x自制RPG游戏总结

cocos2d-x自制RPG游戏总结

2017-02-08 15:29:24 4540

原创 游戏特效之Cocos2dx中的粒子系统

在游戏中为了实现特效,我目前知道的可以采用序列帧,粒子,着色器来实现1.粒子系统介绍:粒子系统是指计算机图形学中模拟特定现象的技术,它在模仿自然现象、物理现象及空间扭曲上具备得天独厚的优势,为我们实现一些真实自然而又带有随机性的特效(如爆炸、烟花、水流)提供了方便。2.Cocos2dx中粒子系统2.1粒子属性:_duration 发射器生存时间,即它可以发射粒子的时间,注意这个

2016-10-13 11:29:13 705

转载 cocos2d中getLocationInView()和getLocation()的区别

关于coco2d点击事件的相关坐标的疑问解答

2016-09-27 09:24:18 4987

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除