Assignment:
Submit a copy of
lab17A.cpp that follows the directions in the comments.
Examples
Typing the following on the command-line:
./lab17A < lab17A-stdinA.txt
your program should match the following
output:
---------------------- STL vector ----------------------
Enter numbers to store in STL containers (enter a letter to stop)
There are 8 integers in the vector
9
7
5
5
6
7
8
9
---------------------- STL list ----------------------
There are 8 integers in the list
9
7
5
5
6
7
8
9
---------------------- STL deque ----------------------
There are 8 integers in the deque
9
7
5
5
6
7
8
9
---------------------- STL stack ----------------------
There are 8 integers in the stack
9
7
5
5
6
7
8
9
---------------------- STL queue ----------------------
There are 8 integers in the queue
9
7
5
5
6
7
8
9
---------------------- STL priority_queue ----------------------
There are 8 integers in the priority_queue
Priority queues do not keep track of the insertion order of their contents, but here's it's contents: 9 9 8 7 7 6 5 5
Can the number of elements and the contents be printed out in the order that they were entered for associative containers? Why?
ANSWER GOES HERE
Additionally, typing the following on the command-line:
./lab17A < lab17A-stdinB.txt
your program should match the following
output.
Submission
Submit your source code using the
handin program. For
handin, for this lab, type the following in a terminal window exactly as it appears:
handin lab17A lab17A.cpp
To verify your submission, type the following in a terminal window:
handin lab17A