摘要:
#define _CRT_SECURE_NO_WARNINGS #include #include #include void main61() { char buf[20]= "aaaa"; //定义并且初始化 char buf2[] = "bbbb"; char *p1 = "111111"; char *p2 = malloc(100); strcpy(p2, "3... 阅读全文
摘要:
#define _CRT_SECURE_NO_WARNINGS #include #include #include //一级指针的典型用法 //数组 int a[10] //字符串 //1 C语言的字符串 以零结尾的字符串 //2 在C语言中没有字符串类型 通过字符数组 来模拟字符串 //3 字符串的内存分配 堆上 栈上 全局区 (很重要) //字符数组 初始化 voi... 阅读全文