【代码模板】
目錄
缺省源文件用法
蒟蒻寫法
我的寫法?
缺省源文件用法
1.打開工具[T];
?
2.打開編譯器選項[E];
3.打開代碼模板;
?
4.打開缺省源文件;
5.編輯(注意要勾選向每一個空白源文件插入下列代碼)
蒟蒻寫法
#include<bits/stdc++.h> using namespace std;int main(){return 0; }我的寫法?
#include <bits/stdc++.h> #define LL long long using namespace std; LL gcd(LL a, LL b) {return a > b ? (b ? a % b : a) : (a ? b % a : b); } LL lcm(LL a, LL b) {return a * b / gcd(a, b); } void rand_arr(int a[], int SIZE) {random_shuffle(a + 1, a + SIZE + 1); }stack <int> st_int; stack <char> st_ch; stack <LL> st_LL; stack <string> st_str;queue <int> qu_int; queue <char> qau_ch; queue <LL>qu_LL; queue <string> qu_str;int main() {return 0; }這樣可以方便我們快速編寫代碼,直接用數組和函數。
?
總結
- 上一篇: 未来十年,物联网最赚钱的是平台型企业?!
- 下一篇: 阿里云ECS云服务器课程_1 云服务器入