小编Pri*_*hal的帖子

我可以在 Bash 中调用 .cpp 程序吗?

我是 Bash 编程的新手。我想在 Bash 文件中调用我的 C++ 程序。

我的程序是myProg.cpp

#include<iostream>
using namespace std;
int main()
{
   cout<<"Salam! World"<<endl;
return 0;
}
Run Code Online (Sandbox Code Playgroud)

我的 bash 文件是myBash.sh. 如何在myBash.sh文件中调用我上面的 .cpp 程序?

command-line bash scripts compiling c++

5
推荐指数
2
解决办法
3万
查看次数

标签 统计

bash ×1

c++ ×1

command-line ×1

compiling ×1

scripts ×1