20190704-Linux basic operation of the first program "hello.c" -chris

1. Open the terminal input vi hello.c;

2. Press i to enter the edit mode, and typing in vi window hello.c

3. Press ESC to exit editing mode, and enter: wq save and exit vi;

4. Run compiler, input gcc hello.c -o a;

The output ./a.

Guess you like

Origin www.cnblogs.com/christopher92/p/11130480.html