While it was 4/11/03 10:01 am throughout the UK, Amey Samant sprinkled
little black dots on a white screen, and they fell thus:
<snip>
no structs in C++ are different than class (the only difference is in
class by default access specifier is private whereas in structs it is
public)
<snip>
I didn't say that the C++ keywords 'struct' and 'class' were synonyms.
I merely meant that by defining a struct, you are defining a class, and
it just saves having to put public: at the top.
Although it isn't enforced by the language, it remains common practice
(IINM) to use 'struct' for C-style structs, and 'class' when you want to
use the functionality of a class.
Basically,
struct Qwert {
means exactly the same as
class Qwert {
public:
and would compile to precisely the same.
Stewart.
--
My e-mail is valid but not my primary mailbox. Please keep replies on
on the 'group where everyone may benefit.