hi everyone,

i have a constructor like this,

CStack(int n)
		bottom_ = new char[n];
		top_ = bottom_;
		size_ = n;

In my main class i call the constructor by creating a

CStack(5); // bottom_ =  new char [5];

my question is can increment the size of the stack by using a copy constructor?

I think a copy constructor as it name suggests creates a copy of the class-variable that is passed to it as a parameter/argument.

Unless the variable being passed has incremented the value.. I'm pretty unsure about it.