There are access modifiers. However, if you don't specify them, they have defaults. Classes default to private, structures default to public. That's the only difference between classes and structures.
You can always do:
The only difference is the default state.Code:C++ struct mystruct { public: int x; private: int y; }; class myclass { public: int x; private: int y; };
[note]
Posting delayed for a long ass time by a database error...
[/note]
Quzah.