I am in bit of a stump here. I am trying to get the parameters of a rectange (width and height) and with operator overloading create a function to have the rectangle parameter plus the this object parameters. When I type in the "this" I get the squiggly lines using Visual Studio 2010 Express.
1. this is a pointer, not a reference, so you would use -> instead of .
2. The function on line 40 is not a non-static member of a class, so there is no such thing as the this pointer for it.
You should rename your parameters to a and b so you understand what they mean.
How do you "add" rectangles in real life? Does it even make sense?