当我打开程序时,控制台是空的。我正在使用 Visual Studio 2012 并且没有错误。当我运行时没有输出,也没有错误!帮助!
#include <iostream>
using namespace std;
bool wex;
int main()
{
int quas =1;
while(quas<4);
cout << "Do You want to continue? Y/N\n";
char answer = 0;
cin >> answer;
switch(answer){
case'y':
return true;
case'n':
return false;
default:
cout << " Ok, No right?\n";
++quas;
}
cout<<"Ok , It's A NO!\n";
return false;
}