Raised This Month: $ Target: $400
 0% 

How to use "--"?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-18-2009 , 19:55   Re: How to use "--"?
Reply With Quote #4

Quote:
Originally Posted by Spunky View Post
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.

Last edited by fysiks; 02-18-2009 at 20:01.
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode