Ubuntu终端执行单个cpp

在cpp所在目录,鼠标右键“在终端打开”

1、生成可执行文件,以hello.cpp为例,生成可执行程序hello

g++ hello.cpp -o hello

2、运行可执行文件

./hello
原文地址:https://www.cnblogs.com/xixixing/p/13229065.html