Originally Posted by
John Connor
Ok.
As a matter of fact I want them to be global and static as well.
I read about the #define environment to create macros but I'm not sure if
Code:
#define t_max t_max 2.0*3.1415926535897932384626433832795
results in a floating point t_max or what.
Thanks.
That's going to get you a lot of errors.
#define macros are just search-n-replace; if you did
Code:
#define t_max (2.0*3.1415926535897932384626433832795)
would simply make the preprocessor remove all occurrences of the token t_max and replace it with that ... thing on the right. The compiler would never see a variable t_max at all.