一个应该不太难的问题,帮帮忙
这是我的程序里面主函数部分void main()
{
char ch1,ch2,ch3,ch4;
do
{
printf("**************欢迎进入中文图书馆管理程序!****************\n");
printf("~~~~~~~~~~\t\t\t~~~~~~~~~~~~\n");
printf("%%%%%%%%%%%%%%%%%%%%%%%%%%%\n");
printf(" 1. <Member>\n");
printf(" 2. <Book>\n");
printf(" 3. <Reports>\n");
printf(" 4. <Help>\n");
printf(" 0. <Exit>\n");
printf("please input a number of 0~4: ");
scanf("%s",&ch1);
switch(ch1)
{
case '1':{
do{
printf("------------Member------------\n");
printf(" 1. <Add New Member>\n");
printf(" 2. <Renew Existing Member\n");
printf(" 3. <Issue Duplicate>\n");
printf(" 0. <Back>\n");
printf("please input a number of 0~3: ");
scanf("%s",&ch2);
switch(ch2)
{
case '1':addcar();break;
case '2':break;
case '3':break;
case '0':break;
}
}
}
case '2':{
do{
printf("------------Book------------\n");
printf(" 1. <Add New Books\n");
printf(" 2. <Issue book>\n");
printf(" 3. <Return Book>\n");
printf(" 0. <Back>\n");
printf("please input a number of 0~3: ");
scanf("%s",&ch3);
switch(ch3)
{
case '1':addbook();break;
case '2':lendbook();break;
case '3':huanbook();break;
case '0':break;
}
}
}
case'3':{
do
{
printf("------------Reports------------\n");
printf(" 1. <Member Details>\n");
printf(" 2. <Book Details>\n");
printf(" 3. <Transactions Details>\n");
printf(" 0. <Back>\n");
printf("please input a number of 0~3: ");
scanf("%s",&ch4);
switch(ch4)
{
case '1':carcount();break;
case '2':bookcount();break;
case '3':lendcount();break;
case '0':break;
}
}
}
case'4':{
do
{
printf("------------------Help------------------\n");
printf("please contant us with the following information:\n");
printf("2006级计算机5班\n");
printf("谢谢合作!\n");
break;
}
}
}
}
}
可是出错显示:syntax error : '}'
是什么意思??删除它??还是...?
应该怎么改???