|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#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) ); |
|
#17
|
|||
|
|||
|
excellent m8, thanks so much for all the help, really appreciate it.
Let you know how I get on. Cheers Taz |
|
#18
|
|||
|
|||
|
"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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Sending an object refrence? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|