我正在尝试在我的Visual C++项目中使用"printf",但它没有起作用。按照Lazy Foo的教程,在我的项目中设置了SDL,但是当我运行它时,printf不起作用。
#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