Preserved Topic: C++ question (Page 1 of 1) |
|
---|---|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-24-2002 04:42
I have a Transformation class that uses my Vector class (not to be confused with STL vector) as a private member variable. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-24-2002 04:48
Usually this would be done with some sort of inheiritence |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-24-2002 04:53
No, they don't inherit from each other, they just happen to use each other. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-24-2002 05:05
I figured it out. It's too complicated to explain, but basically my explanation of the problem was oversimplified, so don't worry about it. =) |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 09-24-2002 05:14
no, damnit!! |
Maniac (V) Mad Scientist From: New California |
posted 09-24-2002 05:14
I would have liked to hear the details but I'm sure you're busy getting whatever it is to work. Maybe some other time. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-24-2002 05:17
Well, essentially, you just #include the vector class from the transformation class. I didn't *think* that was working because there was another similar error related to trying to access private member variables. |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-24-2002 08:27
The poster has demanded we remove all his contributions, less he takes legal action. |