Test it by creating a drivertest file with int main and


Q1.

What is an ADT Stack ?

Give an real world example...

What do you think would be the best way to implement it ?

Q2.

Test it by creating a DRIVER/Test file with int main, and Test the stack class and its basic functionality.

Program 1 - STL STACK

Create a LIST of 10 words. Use the STL class .

This means you are NOT writing the class, it has already been written for you.

Use #include at the top of the program.

Input the list from cin input.

Use the stack to reverse the list.

Print out reversed list

Test with 10 words... able, bread, corn, dog, elephant, frog, ground, House, Italy, Jam

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Test it by creating a drivertest file with int main and
Reference No:- TGS02892438

Expected delivery within 24 Hours