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.
define the array Book books[SIZE_LIMIT] ; in your main and store the data in it within the loop where you read the data from the source file.
If you read the data using a function your function should take as a reference an array of type Book.