【实用】Dev C++编译器属性代码缺省源样例代码

这是我刚刚发明的东西,比较好用。。。

 

源代码复制到Dev C++编译器属性的代码缺省源内即可。。

用法:

包含常用头文件和ctime时间监控插件,常用缩写,快速读入,测试输出函数两个,读入函数,文件读入读出函数,work函数,主函数,还定义了常用字母变量和常用的其他数组之类的变量。。

上手很快,功能强大。。大家自己做一点补充吧。。

那些模板不想放进来,免得A+B都有好几K。。

 

#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<map>
#include<stack>
#include<queue>
#include<ctime>
#include<cstring>
#define ll long long
#define inf 0x7fffffff
int N,M;
int i,j,k,p,q,l,r,s,t,x,y,xx,yy,start,end,head,tail,long,left,right,use,tmp,sum,ans;
int board[][];
int a[][];
int value[][];
bool b[][];
int temp[][];
using namespace std;

inline int read()
{
    int x=0;char ch=getchar();
    while(ch>'9'||ch<'0')ch=getchar();
    while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}
    return x;
}
inline void stdinout()
{
    freopen("in.txt","r",stdin);
    freopen("out.txt","w",stdout);
}
//------------------------------------------------------------
void test1()
{
}

void test2()
{
}
//------------------------------------------------------------
void readin()
{
    stdinout();
    n=read();
    for (i=1;i<=n;i++)
    {
        
    }
}
//------------------------------------------------------------
void work()
{
}
//------------------------------------------------------------
int main()
{
    readin();
    
}

 

转载于:https://www.cnblogs.com/seekdreamer/p/3890949.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值