Linux操作系统下进行C编译
时间:2023-12-21 05:53:11 点击:83

  登陆后用vi 写一个C程序:过程如下:

  vi HelloLinux.c 回车

  进入后选择一种输入方式(a ,i ,o);

  #include

  main()

  {

  printf(“Hello Linux !n“);

  }

  写完程序后Esc 并保存退出(:w “保存“ :q “退出“)

  然后用gcc 编译:

  gcc HelloLinux.c 回车

  用ls 查看就会看到一个HelloLinux.out 文件,下面我们运行它;

  ./HelloLinux.out 回车

  将会显示

  Hello linux !

最新游戏更多

最新软件更多

  • 玩家推荐
  • 游戏攻略

北航游戏网 Copyright(C) 2008- 600435.cn All Rights Reserved!

苏ICP备17061231号| 免责声明