Re: SSGM Chat Hook [message #274705 is a reply to message #274697] |
Sat, 21 July 2007 11:10 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to previous message](/theme/Renegade_Forums/images/down.png) |
![](http://renegadeforums.com/images/custom_avatars/3415.gif) |
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma:
|
General (3 Stars) |
|
|
MathK1LL wrote on Sat, 21 July 2007 13:29 | GameObject * - Data type?
Donater - variable?
-MathK1LL
|
In c++ you must declare a variable before using it.
The variable name is whatever you decide to use. So you could say "gameobject *Some_really_long_unhelpful_name_that_doesnt_really_help;"
(actually i think theres a limit to the length of a variable name, but i cant remember what it is)
A variable is something you can think of as a bucket, and this bucket holds information, or rather, data. But it can only hold the type of data you told it to hold when you declared it.
The type data that you can store in it is defined by the data type.
Data types are for example: int, float, char, double, short, signed char etc etc, however you will see in renegade allot, the data type "gameobject *".
|
|
|