I have a question on how to avoid globals using classes:
I have this:
class cWorkElement
{
public:
....
.....
Privat:
...
...
}
And then i have an array of 100 pointers to this array.
cWorkElement *aMyElements[100];
The "problem" is, that i use some global variabels in this - and i was
wondering if its normal pratice to include theese in a class instead ?
Class cGlobalClass
{
public:
// global variables
cWorkElement *aMyElements[100];
}
Is this a smart way to do it ?
Thanks.