摘要:
#define _CRT_SECURE_NO_WARNINGS #include #include #include int getFilelen(FILE * file) { int len = 0; if (file == NULL) { return -1; } char buf[1024]; //读取每一行 ... 阅读全文
摘要:
#include #include int MyStr1(char * str1, char * str2) { int num = 1; while (*str1 != '\0') { if (*str1 != *str2) { str1++; num++; co... 阅读全文
摘要:
#define _CRT_SECURE_NO_WARNINGS #include #include /* %*代表忽略 %代表匹配 [^]代表除了 */ void test01() { //在helloworld@itcast.cn中找出helloworld 和 itcast.cn char buf[1024] = { 0 }; char b... 阅读全文
摘要:
#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"... 阅读全文