Quote:
Originally Posted by Spunky
Code:
#define GAMESTARTTIME 20
is the same as:
Code:
new const g_iGameStartTime = 20
|
That is incorrect. #define is a preprocessor directive for the compiler. It puts "20" in your code everywhere that it finds GAMESTARTTIME
before it is compiled.
new const will allocate memory to store the integer 20.
This is how I understand it.