Here's a rough structure of my code:
#include <iostream>
using namespace std;
template<typename T>
class Stack{
public:
Stack();
~Stack();
Stack(const Stack<T>& b);
Stack<T>& operator=(const Stack<T>& b);
Stack<T>(string str); //this is the original constructor
...
};
In addition to the constructor Stack(string str)", I want to have another constructor that takes two parameters, say, Stack(int n, string str). But I don't know how to implement that. If I let the new constructor in the class, I get an error message. Any idea how to do this?
