俄罗斯女模特死亡原因:麻烦各位给我编的程序改个错

来源:百度文库 编辑:中科新闻网 时间:2024/05/10 12:39:40
#include <stdio.h>
void main()
{ int x ;
printf(“Your choice:”);
scanf( “%d”,&x);
do
{
if(x==1);printf(“Add a student to a list”);
else if (x==2);printf(“Delet a student from a list”);
else if (x==3);printf(“Edit a student in a list”);
else if (x==4);printf(“Sort student list”);
else if (x==5);printf(“Search a student from a list”);
}
while(!0);
printf(“exit”);
}

if(x==1);后面的;都要去掉的,所有的if后面。

你怎么不说你的错误啊……