#include <iostream>
#include <fstream>
using namespace std;
int MathCommand(); //forward declaration needed or else......
int returnToMathMenu() {
cout << "Would you like to return to the math menu?" << endl;
string Answer1;
cin >> Answer1;
if (Answer1 == "Yes") {
MathCommand(); } //.......this does not get defined because its definition comes later on below.
else { cout << endl; }
cin.ignore(1000, '\n');
return 0;}
The definition comes below because it requires functions that are defined above it and each of THOSE functions uses returnToMathMenu(). How do I get the forward declaration to work without triggering the "duplicate symbols" complaint? I'm on a macbook pro 8 with xcode

New Topic/Question
Reply




MultiQuote





|