I hAve asked this question for several days. I am struggling with this program. There is a input file which is of .txt. It contains list of about fifty books in the format: catalogue_number, author_last_name, author_first_name_, book_title, genre, availabilty.
**Catalogue number's are four characters like "A145"
The program needs to store the objects (class book catalogue_number, author_last_name, author_first_name_, book_title, genre, availabilty) in an array, sort author_last_name, and output as a .txt file.
I can't use vector, command line or anything like that. PLEASE!! PLEASE!! PLEASE!! I have been trying for days to make my program work the way it's supposed to work.
ok I trying to output what's in the input file (.txt) to an output file (.txt):
these are the errors:
book.h:
line 14:expected ')' before "A"
line 15: expected unqualified-id before '{' token
main.cpp:
line 22: 'cout' undeclared [first use this function]
line 34: 'string' undeclared [first use this function]
expected ';' before "A"
line 35: 'A' undeclared [first use this function]
'B' undeclared [first use this function]
'C' undeclared [first use this function]
'D' undeclared [first use this function]
'E' undeclared [first use this function]
'F' undeclared [first use this function]
line 36: no match for 'operator+' in 'book+i'
line 39: 'endl' undeclared [first use this function]
line 40: 'N' undeclared [first use this fucntion]
line 41: no match for 'operator+' in 'book+i'
'getCatalogue_Number' undeclared [first use this function]
'getAuthor_Last_Name' undeclared [first use this function]
'getAuthor_First_Name' undeclared [first use this function]
'getBook_Title' undeclared [first use this function]
'getGenre' undeclared [first use this function]
'get Availability' undeclared [first use this function]