Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - static class members: initialization of class objects http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   Static Class Members: Initialization of Class Objects
   A  class  object  is initialized by the  initialization  of  its  data
   members.  If  there is no constructor the object  may  be  initialized
   using  a  comma separated list of values enclosed within  braces.  The
   syntax is :

   class Temp
   {
   data_type member1
   data_type member2
   data_type memberN
   };

   Temp myobject = { value1, value2, .... valueN };


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson