July 22nd, 2006, 12:22 AM
Meta-Stuff in C++
I am using Borland BuilderX for C++ to write the following code:
I keep getting errors on several things:
virtual void finalize(); //basically the destructor
virtual Object clone(); //to be over-ridden later
const char getAddress();
const char toString();
return new object(*this);
const char object::getAddress()
const char tmp = &this;
const char object::toString()
const char tmp = *this+"@"+*this.getAddress();
- The protected methods, since they are virtual am I supposed to not give them any sort of method?
- The getAddress() method, and I am confused about what I am supposed to return since my compiler tells me that the memory address isn't a "const char". It doesn't however tell me what to store the address as.
I'm still learning the ropes of C++, as my code snippet may suggest...
"The Texan turned out to be good-natured, generous and likeable. In three days no one could stand him." Catch 22
by Joseph Heller.
Buddies? I have no buddies...
Give the BSD daemon some love (proud FreeBSD user)