How can I do some code work just like a singleton?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1008019/c-singleton-design-pattern">C++ Singleton design pattern.</a>  </p>
</blockquote>



<p>How can I create only one instance of a class and share that instance with all my header and source files without using a singleton? Can you provide a simple example?</p>
