CS计算机代考程序代写 // Menu tester:

// Menu tester:
// Version: 1.0
// Date: 2021-06-23
// Author: Fardad Soleimanloo
// Description:
// This file tests the Menu module of the project
/////////////////////////////////////////////
#include
#include “Menu.h”

using namespace sdds;
using namespace std;

void menuTester(Menu m) {
int selection;
while (m >> selection) {
switch (selection) {
case 1:
cout << "option one selected" << endl << endl; break; case 2: cout << "option two selected" << endl << endl; break; case 3: cout << "option three selected" << endl << endl; break; default: cout << "This will never happen!!!!" << endl; break; } } cout << "goodbye!" << endl; } int main() { Menu m("Tester Options menu:\n1- Option one\n2- Option two\n3- Option three", 3); menuTester(m); return 0; }