首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

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

2012-11-10 
紧急求助:VC++如何关闭、打开调试器 谢谢!关闭调试器时,不会输出每个单词打开调试器时,能输出每个单词问题

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

热点排行