模板&工具


DEV C++5.11 下载 

 

 

OJ1

#include<iostream>
using namespace std;
int main(){
    *|*
    return 0;
}

  

 

OJ9

#include<bits/stdc++.h>
using namespace std;
int main(){
    *|*
    return 0;
}

  

PKOJ

#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(){
    *|*
    return 0;
}

  

 

 setP

cout<<fixed<<setprecision(2*|*);

  

 

 

随机数发生器

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n,b,e;
    srand((unsigned)time(NULL));
    cout<<"Nums=?    ";cin>>n;
    cout<<"Start=?   ";cin>>b;
    cout<<"End=?     ";cin>>e;
    while(n--)cout<<(rand()%(e-b+1))+b<<" ";
    return 0;
}

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM