编译器版本 查看的命令如下 rpm -qa | grep gcc 得到如下 写程序 命令如下 vim test.cpp 出现如下图 运行程序 命令 gcc -o test test.cpp ./test 得到如下图