Xcode debugger not showing C++ cout output

前端 未结 1 1442
陌清茗
陌清茗 2021-01-22 02:17

I am currently trying to get the hang of the debugger in Xcode while I am trying to learn C++. I\'m coming across a problem where the debugger is not showing any cou

1条回答
  •  别那么骄傲
    2021-01-22 03:03

    You need to terminate your output line, e.g.:

    std::cout << x << "\n";
    

    or

    std::cout << x << std::endl;
    

    Your output should show up after your have written a line terminator character as in either of the statements above.

    0 讨论(0)
提交回复
热议问题