菜鸟请教!
程序如下:
#inlude <iostream>
using namespace std;
main()
{
char select;
cout << " Menu\n" << endl;
cout << " A for add \n" << endl;
cout << " D for delete\n" << endl;
cout << " S for sort\n" << endl;
cout << " Q for quit\n" << endl;
while ()
{
cin >> select;
if ( select == 'Q')
break;
else
switch (select)
{
case 'A' : cout << "The file has been add\n" << endl;
continue;
case 'D' : cout << "The file has been delete\n" << endl;
continue;
case 'S' : cout << "The file has been sort\n" << endl;
continue;
defualt : cout << "Invilidation!" << endl;
conyinue;
}
}
return 0;
}
初学者,这是书上的一道练习题,可是用VC6.0编译显示有错误,请大家帮帮忙!
错误显示:
syntax error : ')'
syntax error : missing ';' befor '{'
到底哪错了?大家帮帮我,谢谢了!!!