I want to create a menu. The files i have are main.cpp BMI.cpp and BFP.cpp.
I want the program to use the BMI.cpp when 1 is pressed and the BFP.ccp when 2 is pressed. Here is my code so far.
#include <iostream>
using namespace std;
int main(void)
{
int pnum;
cout << "Please press the number of the calculator you would like to use." << endl << endl;
cout << "\n1. BMI Calculator";
cout << "\n2. Body Fat Percentage Calculator\n" << endl;
cin >> pnum;
}