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

 

源代码复制到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();
    
}

 

posted on 2014-08-04 20:29  seekdreamer  阅读(1543)  评论(0编辑  收藏  举报