Linux快速编译

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

 

posted @ 2019-06-29 22:21  *Miracle*  阅读(321)  评论(0编辑  收藏  举报