问题:
I'm using Qt4 and C++ for making some programs in computer graphics.我正在使用 Qt4 和 C++ 来制作一些计算机图形程序。 I need to be able to print some variables in my console at run-time, not debugging, but cout
doesn't seem to work even if I add the libraries.我需要能够在运行时在我的控制台中打印一些变量,而不是调试,但是即使我添加了库, cout
似乎也不起作用。 Is there a way to do this?有没有办法做到这一点?
解决方案:
参考一: https://en.stackoom.com/question/GIx7参考二: https://stackoom.com/question/GIx7