I am trying to write a code in C++ for stack that can push and pop variables of different data types using class templates. However, here I am sending doubles in one array and c