std::cin.setf( std::ios::unitbuf ) has no effect so using it for the standard input stream should be redundant in this context.Zerbinati wrote: ↑Tue Oct 09, 2018 12:55 pmThx Dann!Dann Corbit wrote: ↑Mon Oct 08, 2018 9:06 pm For C++ programs, I also fiddle with the C++ I/O operations like this:Code: Select all
int main(int argc, char* argv[]) { setvbuf( stdin, NULL, _IONBF, 0 ); setvbuf( stdout, NULL, _IONBF, 0 ); std::cout.setf( std::ios::unitbuf ); // For C++ std::cin.setf( std::ios::unitbuf ); // For C++ std::cout << engine_info() << std::endl;
Arasan 21.1
Moderators: hgm, Rebel, chrisw
-
- Posts: 4052
- Joined: Thu May 15, 2008 9:57 pm
- Location: Berlin, Germany
- Full name: Sven Schüle
Re: Arasan 21.1
Sven Schüle (engine author: Jumbo, KnockOut, Surprise)