1.编译生成的可执行程序,例如:gcc-Whello.c-ohello
2.执行生成的可执行程序,例如:chmod+xhello;./hello
3。编写源码:
#include
intmain()
<
printf("hellolinux\r\n");
return0;
}
扩展信息
在Linux虚拟机中使用C语言编译生成“Helloworld”
#include
intmain()
<
printf(“你好世界!/n”);
return0;
}
上一篇:虚拟机点进去怎么退出来
下一篇:虚拟机怎么退出命令行界面