Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!sdd.hp.com!decwrl!uunet!convex!ssimmons From: ssimmons@convex.com (Steve Simmons) Newsgroups: comp.lang.c++ Subject: >>>> static data members... Message-ID: Date: 21 Aug 90 13:50:17 GMT Sender: usenet@convex.com Distribution: comp Lines: 19 To use a one shot variable shared among instances of the same class, use the following code... class GROUP { private: int notShared; static int shared; public: GROUP() : { if (shared == 0) doFirstInstanceStuff(); }; }; int GROUP::shared = 0; // Initialize here Thank you. Steve Simmons