知識社群登入
位置: AutoCAD開放式教學 > 討論區 > 討論
hello, world!\n
1樓
#if 0

--------------------Configuration: VC0820 - Win32 Debug--------------------
Compiling...
VC0820.CPP
D:\VC0820\VC0820.CPP(9) : error C2065: 'printf' : undeclared identifier
D:\VC0820\VC0820.CPP(10) : error C2065: 'system' : undeclared identifier
Error executing cl.exe.

VC0820.exe - 2 error(s), 0 warning(s)
// ----------------------------------------------------------------------------



hello, world!
請按任意鍵繼續 . . .

#endif
// ----------------------------------------------------------------------------

#include <stdio.h>
#include <stdlib.h>

int main()
{
printf("hello, world!\n");
system("pause");
return 0;
}