//-------------------------------------- //file-reverse, max 1000000 //2000/10/05(木) // 2000 Copyright charlie, // All rights reserved // http://www.geocities.co.jp/SiliconValley-Bay/6716/ // happypoint@geocities.co.jp // //reverse.txt書式 //infile //outfile(****.txt) #include #include #include #include #include const int maxnamelen=257; FILE *infile, *outfile; char infname[maxnamelen]; char outfname0[maxnamelen]; char outfname[maxnamelen]; char dummy[maxnamelen]; const char initialfile[]= "reverse.txt"; const char kakutyoushi[]= "txt"; const long maxcount=1000000;//定数でないとだめ //.................................... void header() { cout<<"program sourse:"<< __FILE__<= 0) { to.put(buffer[count]); } } /*................................... */ main( ) { header(); initial(); ifstream from(infname,ios::binary); if ( from ) sub( from ); else printf("can't open." ); }