English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-07-04 05:33:37 · 2 answers · asked by jamey_b_56001 1 in Computers & Internet Programming & Design

2 answers

The struct and a class can be denoted the same way in some context but the only difference between "class" and "struct" is that a struct defaults to having public members (both data members and function members) and a struct defaults to public inheritance. A class defaults to private members and private inheritance.

When you say printed using the stream IO. That is not possible. IT is like saying you print out a class with the stream classes. But you can print out members of a structure using stream IO

2006-07-05 11:29:57 · answer #1 · answered by ? 6 · 0 0

Yes.

http://msdn2.microsoft.com/en-us/library/system.io.stream_members.aspx

2006-07-04 14:52:43 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers