Undeclared identifiers?
Not sure why I'm getting the undeclared identifier and identifier is undefined for "selection." Can anyone see the problem?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#include <iostream>
#include <fstream>
void mainMenu(int);
void displayChart();
int main() {
mainMenu(selection);
displayChart();
system("pause");
}
void mainMenu(int selection) {
//................
}
|
Last edited on
You don't have a variable int selection
in your main
Topic archived. No new replies allowed.