I have a simple C++ program that uses cout and printf to log stuff and it is only showing at the end when the program is closed but if I'm stepping through the program using debug nothing is shown. Did anybo开发者_StackOverflow中文版dy have this problem?
If you're practicing c try fflush
, if c++ try cout << endl;
each time you want to print.
精彩评论