
March 8th, 2005, 07:30 PM
|
|
Contributing User
|
|
Join Date: Jan 2005
Posts: 176
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
|
|
Hey LostInCPP!
I won't give you exactly the answer to your problem...only a couple of advices and an opinion (which might be mistaken).
Code:
Advice 1: The .h files should only contain prototypes of functions and clases, not code. That goes
only in the .CPP file.
Advice 2: Try posting the line or the kind of error you get, not simply attaching files and expect
people to go over your code. I don't mean that the bad sense, it's just that you won't get
much replies that way.
Opinion: I'm not 100% sure about this, so please, don't take my word for it. I think when you have an
Class like the Rectangle your supposed to create an instance of that object by using the
operator new. That is r1 = new Rectagle(.......). You never create an instance that way
and that may be an error (again, not an expert, so don't take my word for it).
That's all folks!!
Good Luck....
Anibal.
|