The following program uses the concept of TEMPLATE and STACKS using POINTERS . The declaration of templates are written in bold. Please type the “template code” below and complete the following three items:
1) Complete PUSH routine using the template concept.
2) Write a COMPLETE POP member function
3l Declare a stack of INTEGER and a stack of CHARACTER in main. Have a loop to push in the integer values. Then pop and write all the integer values. Repeat the same for STACK of character – Read and push three characters. Then pop and write the three values.