Search:

Type: Posts; User: humbled

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    973

    checking type of class

    There is a mammal class and dog + cat inherit mammal.

    If I had a function to which you pass a mammal pointer but it is intended to be passed a dog or cat, how could you check what type of class...
  2. Replies
    3
    Views
    826

    Accessing func in daughter from base

    We have a mammal class, and a dog class which inherits mammal.
    Class dog has wagTail() func

    Since we can do...

    mammal *ptr = new dog;

    ... how can one access wagTail() using *ptr?

    The...
  3. Replies
    3
    Views
    1,018

    or I can just mammal(); in the mammal class...

    or I can just mammal(); in the mammal class right? Thanks for pointing it out
  4. Replies
    3
    Views
    1,018

    Quick question to anyone experienced..

    Probably because of my newbishness but
    what's wrong with this? Thanks for helpin'


    class mammal
    {
    public:
    mammal(int);
    };
  5. Replies
    1
    Views
    1,305

    Allegro and codewarrior

    How would I set up allegro to work with codewarrior?
Results 1 to 5 of 5