Thanks, I think I see the corrolation better now. Yes, the program is horribly redundant. The whole thing is about 200 lines of code to find the area of a rectangle given the input of 2 x,y coordinates...none too helpful;)
I'm just starting to learn c++ and I'm working through a book. I have a basic confusion relating to class usage. To give an example of a has-a class paraphrased from the book:
class Point // holds x,y coordinates
{
public:
void SetX(int x) { itsX = x; }
void SetY(int y) {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.