上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: //int SeqList_Insert(SeqList* list, SeqListNode* node, int pos); //因为这里原来的式子node是一个指针,也就是地址,这里的也必须是指针类型的。 阅读全文
posted @ 2017-06-20 20:48 小陈同学啦 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 从上面的例子可以看出,start在移过两位以后,用0来填补空出的位。进行移位运算时应注意移位前后变量的位数,下面举例说明。 4’b1001<<1 = 5’b10010; //左移1位后用0填补低位 4’b1001<<2 = 6’b100100; //左移2位后用00填补低位 1<<6 = 32’b1 阅读全文
posted @ 2017-06-20 09:48 小陈同学啦 阅读(6538) 评论(1) 推荐(0) 编辑
摘要: #include #include"string" #include"seqlist.h" using namespace std; //创建节点,遍历输出节点,删除节点 typedef struct Teacher { int age; string name; }Teacher; // //SeqList* SeqList_Create(int capacity); // //voi... 阅读全文
posted @ 2017-06-18 13:58 小陈同学啦 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 在c语言中 struct Teacher { int age; char name[24] ; }Teacher; 定义变量的时候应该为: struct Teacher t1; 但是如果 typedef struct Teacher { int age; char name[24] ; }Teach 阅读全文
posted @ 2017-06-14 21:04 小陈同学啦 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 自己玩玩没想到的,这种思想很重要 阅读全文
posted @ 2017-06-14 20:38 小陈同学啦 阅读(394) 评论(0) 推荐(0) 编辑
摘要: D:\Program Files\Notepad++\notepad++.exe +[line number] [file name] 阅读全文
posted @ 2017-06-12 17:05 小陈同学啦 阅读(458) 评论(0) 推荐(0) 编辑
摘要: accumulate() 累加  accumulate: 对指定范围内的元素求和,然后结果再加上一个由val指定的初始值。  #include vector vecIntA; vecIntA.push_back(1); vecIntA.push_back(3); vecIntA.push_back(5); vecIntA.push_back(7); vecIntA... 阅读全文
posted @ 2017-06-08 22:01 小陈同学啦 阅读(236) 评论(0) 推荐(0) 编辑
摘要: #include"vector" using namespace std; #include"string" #include"algorithm" #include void printV(vector tem) { for (vector::iterator it = tem.begin(); it != tem.end(); it++) { cout v1; v1.push... 阅读全文
posted @ 2017-06-08 21:57 小陈同学啦 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include"iostream" #include"vector" using namespace std; #include"string" #include"algorithm" void main_mergr() { vector v1; v1.push_back(1); v1.push_back(2); v1.push_back(3); vector v2; v2.p... 阅读全文
posted @ 2017-06-08 21:37 小陈同学啦 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 别慌 别用网上什么启动源服务巴拉巴拉的话,这有可能是你的逻辑错误了而已。比如没有分配内存。 阅读全文
posted @ 2017-06-08 20:48 小陈同学啦 阅读(1684) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页