常量符号化:用符号而不是具体的数字来表示程序中的数字。 让用户输入颜色的代号,我们输出对应的颜色:可以用const int 和switch来解决。
const int red=0; const int yellow=1; const int green=2;
int main() {int color=-1;char *colorname=NULL; printf("
上一篇:[Java反序列化]CommonsBeanutils1利用链学习
下一篇:【Windows基础】NTFS文件系统