使用vi编辑器创建test.c文件
vi test.c
编写代码helloworld如下:
#include <stdio.h>
int main(){
printf("hello world!\n test");
return 0;
}
gcc编译
执行gcc test.c文件,会生成a.out文件。
执行a.out文件,显示结果如下:
重拾大学学的c++。加油。。
vi test.c
编写代码helloworld如下:
#include <stdio.h>
int main(){
printf("hello world!\n test");
return 0;
}
执行gcc test.c文件,会生成a.out文件。
执行a.out文件,显示结果如下:
重拾大学学的c++。加油。。