rudyloo
April 4th, 2008, 07:35 AM
Hi,
I heard the term Singleton for the first time yesterday.. and after reading around on the net setup a singleton class for my program.
It might be a stupid question, but i am a little confused.
All the code is in the .h file Dont we need a .ccp file?
It is working right now, but i dont want to put large methods and stuff in teh header file.
Does anyone know any good clear examples of singleton usage?
I looked at:
http://sourcemaking.com/design_patterns/singleton/c++/1
http://bytes.com/forum/thread656124.html
Thanks
I heard the term Singleton for the first time yesterday.. and after reading around on the net setup a singleton class for my program.
It might be a stupid question, but i am a little confused.
All the code is in the .h file Dont we need a .ccp file?
It is working right now, but i dont want to put large methods and stuff in teh header file.
Does anyone know any good clear examples of singleton usage?
I looked at:
http://sourcemaking.com/design_patterns/singleton/c++/1
http://bytes.com/forum/thread656124.html
Thanks