a simple question

the question goes like this, "create a class named Book. data member include the book's title, author, price, number of pages. member function include data entry and display function. create an essay of 10 objects. write down all about all of the book of this file". next is "write a program that reads books file and display book data on screen". last is "write a program that prompts the use for a minimum number of pages. read the book file. display only books that contains that prescribed number of pages or more"
1
2
3
4
5
6
7
8
9
class book{
private:
std::string title, author;
int price, pages;
public:
void dataentry(/*something here*/);
void display(/*something here*/);
book(/*something here*/);//upload the book in this would be cool
};

that is a basic outline for you.
Topic archived. No new replies allowed.