VC++怎样关闭和打开调试器
#include<iostream>#include<string>
using namespace std;
int main()
{
string currword,preword;
cout << "Enter some words:" << endl;
while(cin >> currword)
{
#ifndef NDEBUG
cout << currword << " ";
#endif
if(preword == currword)
break;
else
preword = currword;
}
cout << "currword: " << currword << endl;
cout << "preword: " << preword << endl;
if(currword == preword && !currword.empty())
cout << "The repeated word is : " << currword << endl;
else
cout << "No repeated word!" << endl;
return 0;
}