帮忙解决一下谢谢
这条语句没问题吧? 怎么我输入1的时候它完全没有输出任何东西然后直接退回写代码的页面了???是不是我的VC有问题??求个VC安装包#include <iostream>
using namespace std;
void main()
{
int ilnput;
cin >> ilnput;
switch (ilnput)
{
case '1':
cout << "Monday" << endl;
case'2':
cout << "Tuesday" << endl;
case'3':
cout << "Wednesday" << endl;
case'4':
cout << "Thursday" << endl;
case'5':
cout << "Friday" << endl;
case'6':
cout << "Saturday" << endl;
case'7':
cout << "Sunday" << endl;
default:
cout << " input error" << endl;
}
}