Write a C++ program PEX3.cpp that reads a sequence of 20 integers, pushing all of the even integers onto one stack and all the odd integers onto the other. Output the contents of each stack by popping elements until its empty. Remember to use the ArrayStack implementation of the stack in the book.
PEX3.cpp;
StackA.cpp;
StackA.h;
Comments
Leave a comment