queue and stack in C++
Not what you're looking for?
I need two separately programs from the same code.
1.) Modified the code so it has a Pop() function that makes the function of a Queue.
Example:
Input:
Enter Id: 1
Enter Name: Ana
Enter Id: 2
Enter Name: Carlos
Ouput:
(After a pop):
Id: 1
name: Ana
2.) Modified the code so it has a Pop() function that makes the function of a Stack.
Example:
Input:
Enter Id: 1
Enter Name: Ana
Enter Id: 2
Enter Name: Carlos
Ouput:
(After two pops):
Id: 2
Nombre: Carlos
Id: 1
Nombre: Ana
Purchase this Solution
Solution Summary
It modifies the codes so it has a Pop() function that makes the function of a Queue or a Stack, respectively. The response was rated '5/5' by the student who posted the question originally.
Purchase this Solution
Free BrainMass Quizzes
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Javscript Basics
Quiz on basics of javascript programming language.
Basic Networking Questions
This quiz consists of some basic networking questions.
C# variables and classes
This quiz contains questions about C# classes and variables.