re:错哪里了?
pvii 2003-01-16 11:54:01 在vc++里编译如下程序
#include <iostream>
// #include <iostream>
/**
**
the while loop has executed 1 times
the while loop has executed 2 times
the while loop has executed 3 times
the while loop has executed 4 times
the while loop has executed 5 times
**
**/
int main()
{
int iterations = 0;
bool continue_loop = true;
while ( continue_loop != false )
{
iterations++;
cout << "the while loop has executed "
<< iterations << " times\n";
if ( iterations == 5 )
continue_loop = false;
}
return 0;
}
c:\program files\microsoft visual studio\vc98\include\eh.h(32) : fatal error C1189: #error : "eh.h is only for C++!"
谢谢