Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ printing in a loop

Name: Anonymous 2012-07-05 17:14

Hello!
Does anyone know how to tell the program to print stuff each single step in my loop?
Whenever i execute the program it just prints the very last step:

  for( uint i = 0; i < iter; i++) {
    [...]
    std::cout << "stuff";
  }

Thanks!

Name: Anonymous 2012-07-05 17:34

>>3 is probably right. This sounds like an unflushed1 buffer issue.

>>4
printf is ridiculously slow. I wish compilers would optimise it instead of having the run-time library decode the format string.

__________
1. TODO: Insert toilet joke.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List