Z
zl2k
hi, all
I am trying to moniter the runing of a program by printing out some
characters in a line at each stage. say,
//program part1
cout<<"part1 ";
//program part2
cout<<part2 ";
....
I was expecting the program will pring "part1 part2 part3 part4 ...."
in realtime but instead it only print out when the program is finished.
I force it to print out by adding <<endl for each cout then the output
turns to vertical which is hard to see. My question is, how may I print
it in a line in realtime? Thanks.
zl2k
I am trying to moniter the runing of a program by printing out some
characters in a line at each stage. say,
//program part1
cout<<"part1 ";
//program part2
cout<<part2 ";
....
I was expecting the program will pring "part1 part2 part3 part4 ...."
in realtime but instead it only print out when the program is finished.
I force it to print out by adding <<endl for each cout then the output
turns to vertical which is hard to see. My question is, how may I print
it in a line in realtime? Thanks.
zl2k