Question: Design the following menu-driven application using C++ Vector class. Implement the following five functions: 1. Add(vector &num) Prompts the user to provide a number and
Using c++ code. perferrable visual studio. attached is the instructions the sample output. and the .cpp file you should use. dont change the code given, just add in necessary requirements.
#include
using namespace std;#include #include int main(){ vector number; int input; while (true) { showMenu(); cin >> input; switch (input){ case 1: add(number); break; case 2: remove(number); break; case 3: empty(number); break; case 4: count(number); break; case 5: show(number); break; case 6: return 0; break; default: cout } cout } return 0;}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
