2015年8月6日

字符串小小000001

摘要: 1 int arr_1() 2 { 3 ///char a[]={'h','e','l','o','\0'};///没有\0的时候,返回n=7,然后S打印乱码 4 char a[]="helo";///这样初始化的话,自动增加\0;字符串长度为4,数组大小为5; 5 int... 阅读全文
posted @ 2015-08-06 17:26 Eton..Bee 阅读(183) 评论(0) 推荐(0) 编辑

链表存储从文件读取的数据

摘要: 1 #include"getWhitelist_demo.h" 2 3 void Initialize_List(List *l) 4 { 5 *l=(List)malloc(sizeof(Node)); 6 (*l)->Next=NULL; 7 } 8 9 void Inse... 阅读全文
posted @ 2015-08-06 10:30 Eton..Bee 阅读(2032) 评论(0) 推荐(0) 编辑