#include #include "recform.h" #if defined(_WIN32) #define DEFAULTFILENAME "A:\\PROG1.DAT" #else #define DEFAULTFILENAME "../prog1.dat" #endif #define DLIMIT 15 // 15 * 15 * 15 * 15 * 16 = 810000 -- lot of bytes #define DBASE 100 #define DLETTER 'A' void main(int argc, char *argv[]) { simpRecT buff ; int i, j, k, l ; #if defined(_WIN32) ofstream dbFile(DEFAULTFILENAME, ios::binary) ; #else ofstream dbFile(DEFAULTFILENAME) ; #endif if (!dbFile) { cout << "Unable to open " << DEFAULTFILENAME << endl ; return ; } buff.value = 0 ; for (i=0; i<12; ++i) buff.name[i] = '\0' ; for (i=0; i