Is there any circumstance when std::cout << "hello"
doesn't work? I have a C++ program where std::cout
doesn't seem to print anything, not even constant strings (such as "hello").
Is there any way to check if cout
is able/unable to open the stream? There are some member functions like good()
, bad()
, ... but I don't know which one is suitable for me.
std::cout
may not be implemented because there are windows and the OS doesn't know which one of your windows to output to. – Sidsida