operating gcc on linux terminal Versus VSC
> vim
(in vim window) input a program in vim(like #include
then press "esc" and get to the bottom of vim
then input ":w test.c" and ":q"
w means save
w test.c means save with filename: test.c
q means quit
> gcc test.c -o test //use gcc to compile, assembly, and create a .exe file named "test"
> ./test //run the .exe file and you will see your result
once you want to change your test.c file
共有 0 条评论