- 博客(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
原创 二叉树
#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
原创 游戏特效之Cocos2dx中的粒子系统
在游戏中为了实现特效,我目前知道的可以采用序列帧,粒子,着色器来实现1.粒子系统介绍:粒子系统是指计算机图形学中模拟特定现象的技术,它在模仿自然现象、物理现象及空间扭曲上具备得天独厚的优势,为我们实现一些真实自然而又带有随机性的特效(如爆炸、烟花、水流)提供了方便。2.Cocos2dx中粒子系统2.1粒子属性:_duration 发射器生存时间,即它可以发射粒子的时间,注意这个
2016-10-13 11:29:13
705
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅