Ordinary C structures can be initialized with a set of values inside braces.
C++ classes can only be initialized with constructors if the class has constructors, private members, functions, or base classes that are virtual.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|