Click Here to Login
Join Computer forums Today

View Single Post
Old 08-04-2005, 11:38 AM   #3
Daemon Poster
Tulsileaf's Avatar
Join Date: Jul 2004
Posts: 1,249
Default Re: Only 1 Object of the C++ class ??

actually, you can make such an object by having a static boolean flag private member of the class set to false if the object has not been made and true if it has. Then just have the constructor check this flag and not create the object if it has already been made.
(|141 73g ()7 (|33|/| 11143s| |_| z1|-|7 (|43s| |/|4> |_| |-|0|1
Tulsileaf is offline   Reply With Quote

All times are GMT -5. The time now is 12:26 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2019, vBulletin Solutions, Inc.