I'm new to C++ and I'm having a hard time with classes
the question is
int main(void)
{
Point ary[5] = { Point(1, 2), Point(3, 4), Point(5, 6) };
Point sum;
sum.SetXY(sum.GetSumX(ary, 5), sum.GetSumY(ary, 5));
sum.Print();
return 0;
}
for this main function how do I make a Point class
and also make and define a GetSumX and GetSumY function.
The results come out as (9, 12) which is the sum of the arrays.
Plz help me~