Hi guys, I am meant to create a menu for some void functions:
case 1: displayBooks();
I'm just not sure how I'm supposed to call the displayBooks function through the menu.
void displayBooks(BookListType* booklist)
Any help would be much appreciated.
Just as you have it (except for putting the booklist between the parentheses).
When i compile i get an error message saying expected expression before BookListType
I didn't understand your question correctly. There can be two things:
Originally Posted by spikestar
1. You want the function to take no arguments. If that's true then remove the highlighted line.
2. You want the function to take a pointer. If that's the case then pass a pointer(an address) while calling in case 1(inside the paranthesis). For eg. display(any_pointer);