Answers for "cout flush cpp"

C++
1

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