I am having trouble with my copy constructor for a Deque program I am writing. It just does not seem to be doing any copying anyone notice a quick fix on this?
Deque::Deque(const Deque& oldDeque)
{
dArray = new int[oldDeque.dMaxSize];
int sub = oldDeque.dMaxSize;
for (int i = 0; i < oldDeque.dSize; i++)
dArray[i] = oldDeque.dArray[sub];
dMaxSize = oldDeque.dSize;
}