need help with constructor
Code:
//core unit test
//given 2 constructors
vector v1;
vector v2 (5,3);
//member functions : int dotProduct(const Vector &x)
int n = v1.dotProduct(v2)
from the test core const Vector &x = v2
so in order to use it in my dotproduct function i can simply use
x.somefunct which refer to v2. but how can i access v1.let say if what i intend to do is
Code:
if (v1.somefunc != v2.somefunc){
...........;
}
should i copy both constructor? or save it in different memory?
thanks in advance