我想在我的Visual C++项目中使用“printf”,但它不工作。使用Lazy Foo的教程,我在我的项目中设置了SDL,但是当我播放它时,printf并没有做任何事情。Printf不打印任何内容以输出? C++ SDL
#include "SDL.h"
#include <stdio.h>
int main(int argc, char* args[]) {
printf("Testing");
return 0;
}
输出看起来是这样的:
The program '[4664] SDL Testing.exe: Native' has exited with code 0 (0x0).
而且仅此而已。什么可能是错的?
通常'0'表示成功。尝试采取任何输入(或)在返回语句中保留一个断点。 – Mahesh
@Mahesh我在使用printf的时候尝试过放置断点,仍然没有输出。 :( – Qasim
Visual Studio中的输出窗口!= stdout或stderr。 –