用gcc/g++編譯運行C/C++程序

編譯code

gcc hello.c

運行編譯

./a.out

將源程序文件編譯成指定文件gcc

gcc hello.c -o hello

多文件編譯gc

gcc hello1.c hello2.c -o hello
相關文章
相關標籤/搜索