Dynamic Stack  «Prev  Next»

Adding a Constructor to a Stack - Exercise

Objective: Add a constructor to the class ch_stack based on a given function prototype.


Use the following prototype to add a constructor for ch_stack:
ch_stack::ch_stack(const char* c);

The constructor will initialize the stack from a string array.
Paste the source code of your program below and click the Submit button when you are ready to submit this exercise.