-
#define question
Is it possible to #define a value after being scanned in like say if i wanted two values:
Code:
printf("print two values\n");
scanf("%i,%i",int1,int2);
/*check values*/
/*then somehow*/
#define THING_ONE int1
#define THING_TWO int2
/*so then the rest of my program can use the #define sizes*/
Thanks .
-
#define arguments are "preprocessor" directives. This means before it processes any lines of code, these are processed. So no, it wouldn't work the way you expect.
Quzah.
-
aww. Well thanks anyway Quzah