I am getting an error in my program, and have been searching for an answer. The error is "error C2228: left of '.Display' must have class/struct/union"
#include "stdafx.h"
bool Continue();
int main() {
do {
Menu menu(void);
menu.Display(); //my error is here ("menu" is underlined in red),
//saying "expression must have a class type"
} while (Continue());
return 0;
}
bool Continue() {
char ans;
cout << "Would you like to go again (y/n)?";
cin >> ans;