#include <iostream>
#include <math.h>
#include <string.h>
using namespace std;
int main ()
{
cout << "My Funny Program";
do {
string Answer;
cout << "Are you stupid? (Yes/No)";
cin >> Answer;
cout << endl;
cout << "Perhaps you are lying?";
}
while (Answer == "No");
cout << "Thank you for your honesty." << endl;
return 0;
}
我一直试图让这段代码工作;但是,每次弹出错误“未在此范围内声明答案”时。