Run a step c language program in Linux virtual environment

1, activate the virtual environment: Source Venv / bin / the activate
2 entering Hello folder: CD Hello
. 3, the new file: touch <filename>
4, open the file: vim <filename>
5 to enter the file editing mode: Press i
6, the program code input
7, after the input is complete press esc exit the edit mode, and a simultaneous shift: key input x, to exit the edit mode
8, using gcc compiler file: gcc <filename>
9, run a.out files can be output: ./ a.out

Guess you like

Origin blog.csdn.net/qq_40061206/article/details/91809567