1.使用vi/vim进行编写代码并保存为hello_world.c.如下:

/* This is my first C program*/
#include <stdio.h>
int main(){
        printf("Hello World!\n");
        return 0;
}

 2.使用gcc进行编译

 gcc hello_world.c -o hello_world

linux C(hello world)

3.像执行shell脚本一样执行

 ./hello_world

  linux C(hello world)

相关文章:

  • 2021-10-31
  • 2021-09-28
  • 2021-12-12
  • 2021-10-05
  • 2022-01-18
  • 2021-06-06
  • 2022-02-16
  • 2022-12-23
猜你喜欢
  • 2021-12-22
  • 2021-08-11
  • 2022-12-23
  • 2021-06-30
  • 2022-01-28
  • 2022-03-02
  • 2022-12-23
相关资源
相似解决方案