有什么情况什么时候std::cout << "hello"不起作用?我有ac/c ++代码,但是std::cout不打印任何东西,甚至不是常量字符串(例如"hello").
std::cout << "hello"
std::cout
有没有办法检查是否cout能够/无法打开流?还有像一些成员函数good(),bad()...但我不知道哪一个是适合我.
cout
good()
bad()
c++ debugging buffer iostream cout
buffer ×1
c++ ×1
cout ×1
debugging ×1
iostream ×1