读书人

:VC++怎么关闭、打开调试器 多谢

发布时间: 2012-11-10 10:48:51 作者: rapoo

紧急求助: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;
}



[解决办法]
目录Debug->Configuration manager

读书人网 >C++

热点推荐