Question: Create a [ C + + , Windows, Console ] Visual Studio project. 2 . A main CPP file will automatically be created, when the
Create a C Windows, Console Visual Studio project.
A main CPP file will automatically be created, when the project is created.
Add two CPP files to the project: myStack.cpp and myQueue.cpp
Each CPP file will have a corresponding H file, which will be added to the project.
myStack.cpp This file will have three functions:
a initStack int size
b string popStack;
c pushStack string;
d string toString;
e Note, the default parameters. At bottom of the document show an example of
functions with default parameters.
myQueue.cpp This file will have three functions:
a initQueue int size
b string popQueue ;
c pushQueue string;
d string toString;
Create a main C The name of the file is based on the projects name.
Create any other functions that you may need.
Main Program Requirements
The program shall display a menu.
a Manage a Stack
b Manage a Queue
c Exit program.
Validate the menu selection.
If valid, create a Stack or a Queue. Use a vector data structure, for this.
The Stack or Queue will hold data that are valid PSU course numbers.
a ie CmpSc SRA IST etc.
When finished playing with the QueueStack have user loop back, display the menu, and
make another selection.
The main will end when the user selects the number that represents Exit
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
