我第一次接触这个东东,就出现了这个问题,我晕!是vc++不支持printf还是!?
#include "stdafx.h"
int main(int argc, char* argv[])
{
printf("hello!");
return 0;
}报错信息!
compiling...
StdAfx.cpp
Compiling...
hello_dos.cpp
E:\test\hello_dos\hello_dos.cpp(9) : error C2065: 'printf' : undeclared identifier
执行 cl.exe 时出错.hello_dos.exe - 1 error(s), 0 warning(s)