What is the difference between std::ios_base::sync_with_stdio( false );
Vs std::cout.sync_with_stdio( false );
and std::cin.sync_with_stdio( false );
?
Which one should I use supposing my code does not use any of the C streams from <cstdio>
and only uses C++ streams from <iostream>
?
I want to know:
sync_with_stdio is a static
function.
so
std::cout.sync_with_stdio(false);
is in fact
std::cout, std::ios_base::sync_with_stdio(false);