I have an array of objects
And this operatorsCode:Object ob[10];
Now I want to make an array of pointers like thisCode:Object Object::operator+(const Object& ob)
{
Object c;
c._a = _a + ob._a;
c._b = _b + ob._b;
return c;
}
istream& operator>>(istream& is, Object& ob)
{
double a, b;
is >> a >> b;
ob.set(a,b);
return is;
}
But now I have to change my operators and i'm not beeing able to do that.Code:Object *ob[10];
ob[i] = new Object;
Any help how to do it?