NathanCheshire / TemplatedStack

C++ Implementation of a templated stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project 2 : Templated Stack

Made for data structures course fall 2019

Instructions I was given for this homework project

You should then write a program that tests your template. You create an instance of your template for the following data types: int, double, string and at least two classes of your own design and implementation. You should perform the following for each instance of the stack:

  1. Push at least 3 elements of data onto the stack
  2. Output the contents of the stack
  3. Peek at the top of the stack
  4. Output the results of the peek
  5. Pop all but one element from the stack
  6. Output the contents of the stack
  7. Pop the last element from the stack
  8. Output the results of the pop
  9. Peek at the top of the stack

The custom classes you design and implement should contain at least two elements of member data and support the clerical methods necessary to set and get those values. Each class must also overload the << operator.

About

C++ Implementation of a templated stack


Languages

Language:C++ 100.0%