摘要: #define _CRT_SECURE_NO_WARNINGS #include #include #include int getFilelen(FILE * file) { int len = 0; if (file == NULL) { return -1; } char buf[1024]; //读取每一行 ... 阅读全文
posted @ 2018-07-26 15:33 LifeOverflow 阅读(503) 评论(0) 推荐(0) 编辑
摘要: #include #include int MyStr1(char * str1, char * str2) { int num = 1; while (*str1 != '\0') { if (*str1 != *str2) { str1++; num++; co... 阅读全文
posted @ 2018-07-26 09:08 LifeOverflow 阅读(5154) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include #include /* %*代表忽略 %代表匹配 [^]代表除了 */ void test01() { //在helloworld@itcast.cn中找出helloworld 和 itcast.cn char buf[1024] = { 0 }; char b... 阅读全文
posted @ 2018-07-26 08:45 LifeOverflow 阅读(179) 评论(0) 推荐(0) 编辑
摘要: #include #include //malloc realloc ca void test01() { //只会开辟内存 int * p = (int *)malloc(sizeof(int) * 10); for (int i = 0; i < 10; ++i) { p[i] = i; } printf("&P:%d\n"... 阅读全文
posted @ 2018-07-26 08:35 LifeOverflow 阅读(320) 评论(0) 推荐(0) 编辑