2012-02-25 62 views
-3

即使使用SDL,是否可以在cmd窗口中获取COUT的输出?如果是这样,我会怎么做呢?使用SDL的C++ CMD窗口输出

+1

[C++/SDL调试与控制台窗口]可能重复(http://stackoverflow.com/questions/8482363/c-sdl-debugging-with-console-window) – 2012-02-25 14:25:32

+1

再次,就像一个小时前,* *请在发布**前做一些调查。 – 2012-02-25 14:25:47

回答

2

溶液#1:
FAQ_Console

溶液#2:

int main(int argc, char** argv)之前 #undef main添加,并且不链接到SDLmain(SDLMain == libSDLMain.a或SDLmain.lib)。