摘要: 1 /* 2 enum.c -- 使用枚举类型的值 3 */ 4 5 #include <stdio.h> 6 #include <string.h> 7 //#include <stdbool.h> //C99特性 8 9 #define LEN 30 10 11 char* s_gets(cha 阅读全文
posted @ 2018-06-14 22:19 web1013 阅读(129) 评论(0) 推荐(0)
摘要: 1 /* 2 booksave.c -- 在文件中保存结构中的内容 3 */ 4 5 #include <stdio.h> 6 #include <stdlib.h> 7 #include <string.h> 8 9 #define MAXTITL 40 10 #define MAXAUTL 40 阅读全文
posted @ 2018-06-14 16:31 web1013 阅读(197) 评论(0) 推荐(0)
摘要: 伸缩型数组成员C99 声明一个伸缩型数组成员的规则: 1.伸缩型数组成员必须是结构的最后一个成员; 2.结构中必须至少有一个成员; 3.伸缩数组的方括号是空的。 示例 struct flex { int count; double average; double scores[]; //伸缩型数组成 阅读全文
posted @ 2018-06-14 09:47 web1013 阅读(327) 评论(0) 推荐(0)