摘要: 1 /* 2 names3.c -- 使用指针和 malloc() 3 */ 4 5 #include <stdio.h> 6 #include <string.h> //提供 strcpy()、strlen() 原型 7 #include <stdlib.h> //提供 malloc()、free 阅读全文
posted @ 2018-06-13 16:29 web1013 阅读(201) 评论(0) 推荐(0)
摘要: 1 * 2 names1.c -- 使用指向结构的指针 3 */ 4 5 #include <stdio.h> 6 #include <string.h> 7 8 #define NLEN 30 9 10 struct namect 11 { 12 char fname[NLEN]; 13 char 阅读全文
posted @ 2018-06-13 14:33 web1013 阅读(148) 评论(0) 推荐(0)