Linux 下 C 编程

sudo apt-get install vim
sudo apt-get install gcc
sudo apt-get install g++
touch hello.c
vim hello.c
  1 #include<stdio.h>
  2 
  3 #include<stdlib.h>
  4 
  5 int main(int argc,char **argv)
  6 {
  7 
  8     printf("Hello,Linux.\n");
  9 
 10     exit(0);
 11 
 12 }
gcc -o hello hello.c
./hello

 

你可能感兴趣的:(linux)