cout flush in c++ code example
Example: cout.flush() in c++
int main() {
for(int i = 0; i < 100000 ; i++) {
cout << i << '\r';
cout.flush();
}
}
int main() {
for(int i = 0; i < 100000 ; i++) {
cout << i << '\r';
cout.flush();
}
}