Re: Error C2664: Cannot Convert Parameter 1 from 'x' to 'y'

Discussion in 'C++' started by John Harrison, Jun 25, 2003.

  1. New to pointers?

    Play1 is a pointer to a Creature, that makes *Play1 a Creature. Minotaur
    needs a pointer to a Creature, but you've given it a Creature, that's what
    the error message says. The answer in case you haven't worked it out already
    is to drop the *.

    Minotaur(Play1); // Line #33

    john
     
    John Harrison, Jun 25, 2003
    #1
    1. Advertisements

  2. New to pointers?


    Yes, very new, and thanks to you, Suzanne, and Jack. You've made my life
    that much better.

    Tim M.
     
    Tim Mierzejewski, Jun 25, 2003
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.