As beginner, I am trying to write a template class for complex numbers with overloaded constructors and overloaded operators.
I attached two codes, one is errorcode.cpp and the other is correctcode.cpp
1. When I tried to add a constructor that can accept the object of same class and copy the contents, (Is this called copy constructor? )
I have problems with overloading operator +.
(See the commented constructor and its definitions)
2. why? without this constructor, I can compile the code and run it.
3. and any suggestions on this code, am I using correctly cvect<T> or any redundancy?