预览图片

Dev-C++如何创建源代码模板?

按下Ctrl+N或者点击新建源代码,就会自动出现这些代码了

以下是操作步骤

编写你的模板

这里有我的样例:

 1 #include<iostream>//不想OI一场空,千万别用万能头
 2 #include<algorithm>//快排sort()
 3 #include<cstdio>//能不用cin就不用
 4 #include<cstring>
 5 #include<cmath>
 6 #include<map>
 7 #include<vector>
 8 #include<queue>
 9 #include<set>
10 #define IL inline
11 using namespace std;
12 
13 
14 int main()
15 {
16     freopen(".in","r",stdin);
17     freopen(".out","w",stdout);
18     
19     return 0;
20 }
模板样例

相关文章: