編譯器版本
查看的命令如下
rpm -qa | grep gcc
得到如下
寫程序
命令如下
vim test.cpp
出現如下圖
運行程序
命令
gcc -o test test.cpp
./test
得到如下圖
查看的命令如下
rpm -qa | grep gcc
得到如下
命令如下
vim test.cpp
出現如下圖
命令
gcc -o test test.cpp
./test
得到如下圖
https://jingyan.baidu.com/article/6079ad0e39242268fe86db78.html