How can you get unbuffered output from cout, so that it instantly writes to the console without the need to flush (similar to cerr)?
I thought it could be done throu
std::cout.setf(std::ios::unitbuf);
Should do the trick.