switch(choice) { case 0: printf("%d",LOOP_LIMIT); /* this line gives the error */ break; case 1:
当我注释掉它的线,它编译好
#define LOOP_LIMIT 10; ^ Remove this semicolon.