码迷,mamicode.com
首页 > 系统相关 > 详细

Linux快速编译

时间:2019-06-29 23:49:38      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:clu   string   col   tmp   c++   turn   system   code   ace   

#include<bits/stdc++.h>
using namespace std;
string name, tmp, s;
int main()
{
    cin >> tmp ;
    s = "g++ " + tmp + ".cpp -Wall -O2 -std=c++11 -o " + tmp +".exe";
    system(s.c_str());
    return 0;
}

输入cpp的名称即可。

Linux快速编译

标签:clu   string   col   tmp   c++   turn   system   code   ace   

原文地址:https://www.cnblogs.com/Miracevin/p/11108101.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!