Answers for "c++ how to flush cout"

C++
0

cout.flush() in c++

 
int main() {
  for(int i = 0; i < 100000 ; i++) {
      cout << i << 'r';
      cout.flush();
  }
}
Posted by: Guest on April-03-2021

Browse Popular Code Answers by Language