Why does my function called “menu” keep repeating no matter whatinput is put in? How do I fix this?
#include <iostream>
#include <cmath>
#include <string>
#include <iomanip>
using namespace std;
string Menu(string userSelect) {
cout << “Menu: Please select one of thefollowing options:” << endl << endl;
cout << “1 – Drop a single chip into oneslot” << endl;
cout << “2 – Drop multiple chips into oneslot” << endl;
cout << “3 – Show the options menu” <<endl;
cout << “4 – Quit the program” << endl<< endl;
cout << “Enter your selection now: “;
cin >> userSelect;
cout << endl << endl;
return userSelect;
}
int
PayPal Gateway not configured
PayPal Gateway not configured