整数常量的符号名称...
#include <stdio.h> enum _bool {false,true}; int main(){ enum colors { red, orange, yellow, green, blue, violet, }; enum colors a = green; int b = yellow; printf("%d\n",a); printf("%d\n",b); }
时间: 2024-10-13 05:13:28
整数常量的符号名称...
#include <stdio.h> enum _bool {false,true}; int main(){ enum colors { red, orange, yellow, green, blue, violet, }; enum colors a = green; int b = yellow; printf("%d\n",a); printf("%d\n",b); }