I have written a program in C++ in Linux (Ubuntu 12.04) platform which print my required output into the stdout in every second. It means, after 10 seconds, I have 100 lines (each stdout in every second is 2 lines report) in the stdout.
This is my applied simulation format and i cannot change any variable or method to write the output into the variable instead of the stdout.
I am going to save this output into the string variable instead of the stdout. How is it possible by C++ language?