- 基础框架,写任何代码前写好
#include <stdio.h>
int main()
{
return 0;
}
- 打印程序返回值用gcc test.c -o test 和 echo %errorlevel% (注意空格和符号)
-
D:\C语言\code\第二章>gcc test.c -o test D:\C语言\code\第二章>test Yuki D:\C语言\code\第二章>echo %errorlevel% 0 D:\C语言\code\第二章>
#include <stdio.h>
int main()
{
return 0;
}
D:\C语言\code\第二章>gcc test.c -o test
D:\C语言\code\第二章>test
Yuki
D:\C语言\code\第二章>echo %errorlevel%
0
D:\C语言\code\第二章>