May 3, 2018 at 4:03am
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 May 3, 2018 at 4:04am
May 3, 2018 at 4:47am
You don't have a variable int selection
in your main