Read Records issue

If you trying to make an program read records what suppose to be the in the question marks? am using this as my append
friend void append(SalesRecordPtr& head, SalesRecord& thisrecord);


1
2
3
4
5
6
7
8
9
10
11
12
 SalesRecordPtr read_records(ifstream& in)      // Allocate space for records & read them
// Parameters: Input stream, List of records.      
// Returns   : Pointer to list of records allocated.                                                        
// Calls     : read(), append().                                                        
{  SalesRecord      temp;           // Temporary record in which to read data
  ? = NULL;                  // Initialize to NULL incase no records
                                    // Peek ahead to see if there is anything in file
   while (in.good() && !in.eof() && in.peek() != -1)    
   {  temp.read(in);               // Read next record
      append(?, temp);        // Add record to end of list
   }
} // End of read_records() 
thanks but, am not using string on mines and it not alike like my program
thanks but, am not using string on mines and it not alike like my program
Sorry about that.

If not strings what then? Also we don't know what the file looks like and the definition of your classes and function
Topic archived. No new replies allowed.