请教(请不啬赐教)
下面的程序,枚举类,怎么color++不行啊?#include<stdio.h>
void main(void)
{
enum {red,yellow,blue,white,black} color;
printf("全部枚举字符串是:\n");
for(color=red;color<=black;color++)
switch(color)
{
case red:printf("red\n");break;
case yellow:printf("yellow\n");break;
case blue:printf("bule\n");break;
case white:printf("white\n");break;
case black:printf("black\n");break;
}
}