摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdlib.h> 3 #include <stdio.h> 4 #include <string.h> 5 int main() 6 { 7 int t = 0; 8 while (printf("*" 阅读全文
posted @ 2022-03-15 21:16 小团熙 阅读(44) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 int main() 5 { 6 int i, v1 = 0, v2 = 0, v3 = 0; 7 for (i = 5; i < 15; 阅读全文
posted @ 2022-03-14 21:18 小团熙 阅读(105) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <string.h> 4 #include <stdlib.h> 5 6 7 int main() 8 { 9 unsigned char a = 0x5b, b 阅读全文
posted @ 2022-03-14 15:20 小团熙 阅读(46) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <math.h> 5 #include <string.h> 6 7 8 //存款利息的计算 9 int main() 阅读全文
posted @ 2022-03-12 21:22 小团熙 阅读(31) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <math.h> 5 6 int main() 7 { 8 printf("%s\n", "hello world"); 阅读全文
posted @ 2022-03-11 23:16 小团熙 阅读(24) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <stddef.h> 5 #include <errno.h> 6 7 struct S 8 { 9 int n; 10 阅读全文
posted @ 2022-03-10 22:34 小团熙 阅读(26) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <string.h> 5 6 char *getmemory(void) 7 { 8 char p[] = "hello 阅读全文
posted @ 2022-03-09 22:32 小团熙 阅读(36) 评论(0) 推荐(0)
摘要: 动态内存分配: 1 #define _CRT_SECURE_NO_WARNINGS 1 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <string.h> 5 #include <errno.h> 6 #include <Windows. 阅读全文
posted @ 2022-03-08 21:35 小团熙 阅读(28) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2022-03-08 15:17 小团熙 阅读(0) 评论(0) 推荐(0)
摘要: 1 枚举类型 2 enum sex 3 { 4 //枚举的可能取值 - 常量s 5 male = 2,//给枚举常量赋初值ss 6 female = 4, 7 secret = 8 8 }; 9 10 enum color 11 { 12 red, 13 green, 14 blue,s 15 }; 阅读全文
posted @ 2022-03-08 15:13 小团熙 阅读(26) 评论(0) 推荐(0)