What would be the process

We need to make a new function to execute operation on two templates

@dhruvtrehan45 i am a bit confused as to what exactly are you trying to do? Please be more specific

How can we make a program using two templates. please explain with a help of example (char and int)

@dhruvtrehan45 which data structure do you want to use? What are you trying to do in the program?

in reference to this code , i want to declare two template and make all the functions work on both https://ide.codingblocks.com/s/257454

@dhruvtrehan45 you can make a stack of type char and one of type int like this
image
The syntax for functions will remain the same in both. Is this what you are asking for?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.