C++PRIMER上的一个问题
#include <iostream>
#include <string>
#include <cctype>
using namespace std;
int main()
{string str;
string str1;
int flag=0;
while(cin>>str)
{
#ifndef NDEBUG
cout<<str<<" ";
#endif
if(!isupper(str[0]))
continue;
if(str1==str)
{ flag=1;
break;
}
str1=str;
}
if(flag==1)
cout<<str<<endl;
else
cout<<" !!!!!!!!!!!!!"<<endl;
return 0;
}
它说在关闭调试器的情况下将只输出第一个字母为大写的连续出现2次的单词,,请问要如何关闭调试器