Define a class BOOK with the following members: Private Members: Bno- Of type int Bname- Of type char array size of 20 Author- Of type char array size 20 Price- Of type float Public Members: void Enter()- Member function to enter the values of data members void Display()- Member function to display the values of data members int RBno()- Member function that returns the value of Bno char*RBname()- Member function that returns the value of Bname Write a menu driven prgram with separate functions for each of the follwing for an array of BOOK type: -To enter values in the array of BOOK -To display the details from an array of BOOK passed through parameter -To search for a BOOK from the array upon its Bno and display its details -To search for a BOOK from the array upon its Bname and display its details |
|
|
1)Line 39: 'Book::Display(Book*,int)' is not a member of 'BOOK' 2)Line 69: Undefined symbol 'Display' 3)Line 88: 'BOOK::Bno' is not accessible. 4)Line 89: 'BOOK::Bname' is not accessible. 5)Line 90: 'BOOK::Author' is not accessible. 6)Line 91: 'BOOK::Price' is not accessible. 7)Line 108: 'BOOK::Bno' is not accessible. 8)Line 109: 'BOOK::Bname' is not accessible. 9)Line 110': BOOK::Author' is not accessible. 10)Line 111: 'BOOK::Price' is not accessible. |
|
|
A[i].Display();
instead
|
|
void Accept(BOOK A[], int K)
|
|
|
|