checkMate09's blog

By checkMate09, history, 8 years ago, In English

Hi,

today, while solving problems i faced a problem that the output is printed only when i terminate the program i deleted the project created another one with the same problem.

do any one know how to solve this matter ?

thanks.

  • Vote: I like it
  • +6
  • Vote: I do not like it

| Write comment?
»
8 years ago, # |
Rev. 2   Vote: I like it +5 Vote: I do not like it

Probably, you have to flush your standard output. Use

cout << endl;

or

cout << flush;

or

fflush(stdout);

when you want to see your output data immediately.