#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;
int main()
{
ofstream flout("SNPass.pas");
if(!flout){
cerr<<"文件打开失败"<<endl;
exit(1);
}
for(int i=0;i<1000000;i++)
if (i<10) flout<<"00000"<<i<<endl;
else if(i<100) flout<<"0000"<<i<<endl;
else if(i<1000) flout<<"000"<<i<<endl;
else if(i<10000)flout<<"00"<<i<<endl;
else if(i<100000)flout<<"0"<<i<<endl;
else flout<<i<<endl;
flout.close();
return 0;
}
//打开outFile的属性,大小为8,000,000 Bytes
//因为一个endl为char 13+char 10所有正好大小=(6+2)*1,000,000 Bytes
#include <fstream>
#include <iomanip>
using namespace std;
int main()
{
ofstream flout("SNPass.pas");
if(!flout){
cerr<<"文件打开失败"<<endl;
exit(1);
}
for(int i=0;i<1000000;i++)
if (i<10) flout<<"00000"<<i<<endl;
else if(i<100) flout<<"0000"<<i<<endl;
else if(i<1000) flout<<"000"<<i<<endl;
else if(i<10000)flout<<"00"<<i<<endl;
else if(i<100000)flout<<"0"<<i<<endl;
else flout<<i<<endl;
flout.close();
return 0;
}
//打开outFile的属性,大小为8,000,000 Bytes
//因为一个endl为char 13+char 10所有正好大小=(6+2)*1,000,000 Bytes