Question: main.cpp: In function 'int main ( ) ' : main.cpp: 1 1 3 : 3 6 : error: passing 'const bookType' as 'this' argument discards

main.cpp: In function 'int main()':
main.cpp:113:36: error: passing 'const bookType' as 'this' argument discards qualifiers [-fpermissive]
113
b.printAllBooks ();
main.cpp:52:6: note: in call to ' void bookType: :printAllBooks()'
52| void bookType::printAllBooks(){
| Anemonnour
main. cpp:120:47: error: passing 'const bookType' as 'this' argument discards qualifiers [-fpermissive]
120
b. printBooksByTitleAndISBN();
main.cpp:67:6: note: in call to ' void bookType::printBooksByTitleAndISBN()'
67| void bookType::printBooksByTitleAndISBN(){
Amennemenour
main.cpp:126:39: error: passing 'const bookType' as 'this' argument discards qualifiers [-fpermissive]
126
b.searchBookByISBN();
main.cpp:72:6: note: in call to ' void bookType: :searchBookByISBN()'
72| void bookType::searchBookByISBN(){
 main.cpp: In function 'int main()': main.cpp:113:36: error: passing 'const bookType' as

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!