hmm weird. i remove the static and its not working either. is this has something to do with doing it all in header file?
anyway i read in a book about singleton class is a good idea instead of having a global variable. something to do with controlling the variable eg locking it so other class can change the value temporarily. --- On Sun, 4/5/09, Tyler Littlefield <[email protected]> wrote: > From: Tyler Littlefield <[email protected]> > Subject: Re: [c-prog] noob question: implementation in header > To: [email protected] > Date: Sunday, April 5, 2009, 5:32 PM > why do you want to define it static? > Remove the static and it'll work great. > If you want it shared between *all* classes, just make it a > global variable. > > > Thanks, > Tyler Littlefield > Web: tysdomain.com > email: [email protected] > My programs don't have bugs, they're called > randomly added features.
