ubuntu如何编译cpp

lewis 2019-11-24 20次阅读

ubuntu编译cpp的示例:

1.编写C++文件,保存为“test1.cpp”。

//-------------ubuntu上.cpp文件编译与运行

#include

int main()

{

using namespace std;

const int ArSize = 20;

char name[ArSize];

char dessert[ArSize];

cout



发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。