I am stuck in the following code.I'm beginner in C++. I am facing problem in the following code.if any one from you help me it will be very helpful to me.
using namespace std;
cout<<"In the constructor of vector which takes argument of int"<<endl;
cout<<"Declared array of size and pointed to pointer v"<<endl;
int operator *(vector &y)
cout<<"In operator function"<<endl;
sum +=this->v[i] * y.v[i];
cout<<"Calling the * operator function"<<endl;
cout<<"The value of r:"<<r<<endl;
Problem is in size variable.I'm assigning value size to 3 in first constructor but at when it calls second constructor which takes array pointer as argument value of size is changed despite calling from same object. Kindly help.Need help.