Go Back   Flash Flash Revolution > General Discussion > Technology
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-19-2012, 05:37 PM   #1
SlayerApocalypse666
Banned
FFR Veteran
 
Join Date: Aug 2006
Posts: 324
Default C++ preprocessor directives

Hi guys, i've been scratching my head about these for a while now, i'm not sure WHAT and WHY they should be used for.

They are statement that are processed before the compilation is done, *as i've read*. But ... why would you use instead of just using a regular variable in your program ?? Anybody has any idea.

#define ZERO 0;
#define TRUE 1;

instead of

int ZERO{}; or int ZERO = 0; or int ZERO = {0}; or int ZERO = {};
int TRUE{1};

i just don't get it guys. Plus why does #define doesnt require a type for the variable.....? i'm really confused about em.

Thx alot.
SlayerApocalypse666 is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 Off
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution