Annotation of mstools/samples/iostutor/exios108.cpp, revision 1.1.1.1

1.1       root        1: // exios108.cpp
                      2: // The write member function
                      3: #include <fstream.h>
                      4: 
                      5: struct Date
                      6: {
                      7:    int mo, da, yr;
                      8: };
                      9: 
                     10: void main()
                     11: {
                     12:    Date dt = { 6, 10, 91 };
                     13:    ofstream tfile( "date.dat" , ios::binary );
                     14:    tfile.write( (char *) &dt, sizeof dt );
                     15: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.