Hi.
My main code has the statement:
#define dimensions 2
How is it possible (without passing the value to each object as it is created) to make this value available to all classes that are used within thie main code?
thanks.
Hi.
My main code has the statement:
#define dimensions 2
How is it possible (without passing the value to each object as it is created) to make this value available to all classes that are used within thie main code?
thanks.
This isn't a variable it's a pre processor define. It may be used anywhere in your source file below where you defined it. You should place these in a header file which would need to be included by all source files that use them.
OK thanks for your help