[求助]cerr和cout的区别
#include <iostream.h>
//using namespace std;
void main(void)
{
for (int i=1;i<=10;i++)
cerr>>"can't"<<i<<endl;
//return 0;
}
在线等待!
还有clog
编译时候都会有个错误提示:
-------------------Configuration: cerr - Win32 Debug--------------------
Compiling...
cerr.cpp
E:\vc++\add\cerr\cerr.cpp(9) : error C2676: binary '>>' : 'class ostream_withassign' does not define this operator or a conversion to a type acceptable to the predefined operator
执行 cl.exe 时出错.
cerr.exe - 1 error(s), 0 warning(s)