Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
cout と printf を使用してログを記録する単純な C++ プログラムがあり、プログラムが閉じられたときに最後にのみ表示されますが、デバッグを使用してプログラムをステップスルーしている場合は何も表示されません。誰かがこの問題を抱えていましたか?
cを練習している場合は、印刷するたびにfflushc++を試してください。cout << endl;
fflush
cout << endl;