ok i was thinking about making some (simple) code to see whether two rectangles (not actual ones--only the numbers like coords and dimensions exist) are overlapping
i created a "Rect" class and then i got down to passing in the values in each rectangle.
what im wondering is if it is possible to do it without passing in the height,width, and coordinates directly:
instead of something like this:
i tried the first method and in the function:
//trying to use a pointer the the class type
and I get a compiler time error:
im kinda tired right now so i might be doing something entirely stupid...but i dont think so...*yawns*
request for member `getRectYCoord' in `r1', which is of non-aggregate type `Rect *'