Dev C++設置代碼模板


工具-》編譯器選項-》代碼-》缺省源-》把

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <string>
#include <map>
#include <stack>
#include <vector>
#include <set>
#include<iomanip>
#include <queue>
#define endl '\n'
#define _for(i,a,b) for(int i=a;i<b;i++)
//#define ONLINE_JUDGE
using namespace std;
const int N = 1e5+5;
typedef long long ll;
int main(){
#ifndef ONLINE_JUDGE
    freopen("in.txt", "r", stdin);
#endif
    ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);


#ifndef ONLINE_JUDGE
    fclose(stdin);
#endif
    return 0;
}

 

粘貼進去,然后打上對勾,下次新建就不用打頭文件了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM