问个问题.
#include <iostream.h>void main()
{ char mingling
cout<<"*********************";
cout<<"计算机程序"<<'\n';
cout<<"a是加法运算"<<'\n';
cout<<"b是减法运算"<<'\n';
cout<<"c是退出程序"<<'\n';
cout<<"请你输入命令:";
cin>>mingling;
switch (mingling)
{
case 'a':
cout<<"计算加法\n";
cout<<"请输入第一个数:\n";
cin>>a;
cout<<"请输入第二个数:\n";
cin>>b;
break;
case 'b':
cout<<"计算减法";
case 'c':
cout<<"程序退出";
break;
default;
cout<<"你输入的指令不合法\n";
break;
}
}
这程序哪里有错误呀? 我找了半天没找到哪错?