1、编写demo.c程序
#include
int main()
{
printf("Hello world!");
return 0;
}
2、编译成可执行文件
$gcc demo.c -o demo
3、执行
[root@loaclhost testhu]# ./demo
Hello world!

#includeint main() { printf("Hello world!"); return 0; }
$gcc demo.c -o demo
[root@loaclhost testhu]# ./demo
Hello world!
上一篇 已成功安装pytorch,显示no moudle named ‘torch‘
下一篇 Windows Server 2012安装wireshark提示the visual c++ redistriutable installer failed with error 23