Page 2 of 2 First 12
  • Jump to page:
    #16
  1. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Feb 2001
    Posts
    1,481
    Rep Power
    16
    movement(string a_string, void (*psome_function) (Monkey& a_monkey);

    I made a mistake, this needs one more parenthesis at the end:

    movement(

    string a_string, void (*psome_function) (Monkey& a_monkey)

    );
  2. #17
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    236
    Rep Power
    13
    excellent m8, thanks so much for all the help, really appreciate it.

    Let you know how I get on.

    Cheers
    Taz
  4. #18
  5. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Feb 2001
    Posts
    1,481
    Rep Power
    16
    "when you say variable of monkey, what exactly do you mean?"

    Monkey monkey1;
    int number1;
    string text1;

    monkey1, number1, and text1 are all variables and their respective types are Monkey, int, and string. So, monkey1 is a variable of type Monkey, although monkey1 is more commonly referred to as an "object" of the "class" Monkey.
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo