摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> //声明枚举类型 enum Color { //枚举类型的可能取值,常量 RED, GREEN, BLUE }; int main() { //enum Color c = BLUE; print 阅读全文
posted @ 2022-04-13 21:52
zzy_C
阅读(1533)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> //声明枚举类型 enum Color { //枚举类型的可能取值,常量 RED, GREEN, BLUE }; int main() { //enum Color c = BLUE; print 阅读全文
posted @ 2022-04-13 21:52
zzy_C
阅读(1533)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> //声明枚举类型 enum Option { EXIT, //0 ADD, //1 SUB, //2 MUL, //3 DIV //4 }; int main() { int input = 0; 阅读全文
posted @ 2022-04-13 17:51
zzy_C
阅读(45)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> //结构体传参 struct S { int data[1000]; int num; }; struct S s = { {1,2,3,4},1000 }; //结构体传参 void print 阅读全文
posted @ 2022-04-13 16:56
zzy_C
阅读(51)
评论(0)
推荐(0)
摘要:
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> //结构体的内存对齐 struct S { char c2; char c1; int i; }; struct S2 { double c2; int i; char c1; }; int ma 阅读全文
posted @ 2022-04-13 13:18
zzy_C
阅读(24)
评论(0)
推荐(0)
|