一个项目中可能有多个cpp文件,在linux下编译执行过程如下:

g++ main.cpp distance.cpp
./a.out

即可一起编译两个文件,然后执行该程序。

posted on 2018-05-18 15:54  未完代码  阅读(245)  评论(0编辑  收藏  举报