4.12g++

g++ 是 GCC(GNU Compiler Collection)中的 C++ 编译器。
可以把 .cpp 文件编译成机器能懂的可执行文件(.exe 或无后缀的 UNIX 可执行文件)。
基本写法:g++ main.cpp -o main
main.cpp:源代码文件。
-o main:输出文件名是 main。

posted @ 2025-04-12 21:47  五冬夜  阅读(21)  评论(0)    收藏  举报