On Sat, 2002-10-26 at 23:16, Gordon Messmer wrote: > On Sat, 2002-10-26 at 20:23, Steve Strong wrote: > > > > JGrasp does use gcc (the kids are writing in C++, so they're really > > using g++). I shouldn't have used the word crash. To be more precise, > > they are doing a merge sort of two sorted files into a third, sorted > > file. Each file contains records of financial transactions. They have > > written overloaded stream insertion, stream extraction and comparison > > operators to complete the task. When they read in the records they are > > read correctly, > > How can you tell?
we can cout the data members (without using overloaded operators for the the user-defined types, ie: cout << trans.month which is an int.) of the records and get valid data to the screen. > > > but when written out to the file, the text is corrupted. > > What functions are you using to write the text? we are using overloaded stream insertion operators. > -- Steve Strong Computer Science Teacher Washington High School 2205 Forest Dr. SE Cedar Rapids, IA 52403 mailto: [EMAIL PROTECTED] website: http://crwash.org telephone: 319-398-2161 -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list