Arasan 21.1

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Arasan 21.1

Post by Sven »

Zerbinati wrote: Tue Oct 09, 2018 12:55 pm
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;
Thx Dann!
std::cin.setf( std::ios::unitbuf ) has no effect so using it for the standard input stream should be redundant in this context.
Sven Schüle (engine author: Jumbo, KnockOut, Surprise)