Search:

Type: Posts; User: Aaronugio

Search: Search took 0.01 seconds.

  1. Replies
    24
    Views
    5,794

    well it's not so much that i want the Dog to BE a...

    well it's not so much that i want the Dog to BE a cat so much as i want it to be able to perform a couple of Cat functions

    or would it be more effective to just write the two or so Cat functions...
  2. Replies
    24
    Views
    5,794

    Thanks guys for all the help, I have one last...

    Thanks guys for all the help,
    I have one last question on the subject,
    let's say i have Dog, object, but want it to behave like a Cat object, assuming they're both on the same hierarchy level,...
  3. Replies
    24
    Views
    5,794

    Ok, i think I've got it now, i adjusted the "new...

    Ok, i think I've got it now, i adjusted the "new Animal" to being a "new Dog" and added a call to the destructor and it works now.

    Thanks again so much for being patient with me, I know I can be...
  4. Replies
    24
    Views
    5,794

    ok, so I've edited it, and yet again, it...

    ok, so I've edited it, and yet again, it compiles, but gives me the same message:

    "First-chance exception at 0x004115e6 in Casting Test.exe: 0xC0000005: Access violation reading location...
  5. Replies
    24
    Views
    5,794

    I know that I'm just trying to get a grasp of...

    I know that I'm just trying to get a grasp of casting, for possible future purposes, none in mind yet...

    ok, I changed my animal to a pointer, and the situation is pretty much back at the start...
  6. Replies
    24
    Views
    5,794

    ah... thanks

    ah... thanks
  7. Replies
    24
    Views
    5,794

    "Thanks Elysia. You're a programming master! How...

    "Thanks Elysia. You're a programming master! How the hell do you know every thing?"
    :)
  8. Replies
    24
    Views
    5,794

    thanks but that last problem is still there, I'm...

    thanks but that last problem is still there, I'm working in VC++ and it says it's an illegal indirection
    any reason why?
  9. Replies
    24
    Views
    5,794

    So how would I go about making a constructor that...

    So how would I go about making a constructor that could take an Animal object?
    Could I make another? or would I have to change my current constructor to fit the Animal conversion?
  10. Replies
    24
    Views
    5,794

    Casting issues...

    ok so I've come to the casting section of my book, and I've read and read, and this set of code seems to be right, all it says is that it can't convert down through the classes.

    Main.cpp

    ...
  11. it worked thanks again so much

    it worked thanks again so much
  12. Thanks

    Thanks you guys I'm sorry if this seemed very wasteful of your time, but thanks for helping me, I've only been seriously trying to learn for about 2 weeks now, but sometimes i just forget parts.
    ...
  13. Thanks but that has lead me to another problem,...

    Thanks but that has lead me to another problem, when I changed it, it gave me these errors...

    : error LNK2019: unresolved external symbol "public: __thiscall number::~number(void)"...
  14. new to C++ and I don't understand what it means...

    Working in VC++ and here's my problem, was reading through my "SAMS Teach yourself C++ in 1 hour a day" and got to chapter 13 which is supposed to teach operator overloading, but when I modified the...
Results 1 to 14 of 16