001、
#include <stdio.h> enum set01 {aaa, bbb, ccc, ddd}; // 表示一定整数值的集合的枚举类型。0, 1, 2, 3 int main(void) { printf("aaa: %d\n", aaa); printf("bbb: %d\n", bbb); printf("ccc: %d\n", ccc); printf("ddd: %d\n", ddd); enum set01 test; printf("test = "); scanf("%d", &test); printf("test_out = %d\n", test); return 0; }
标签:aaa,语言,bbb,test,枚举,printf,类型,ccc,ddd From: https://www.cnblogs.com/liujiaxin2018/p/16600625.html