hi,
i want to binary write the fields of class to a file.Mainly i want to serialize only the public fields not the private ones or the functions....
class a
{
public:
int a;
int b;
protected:
void function1();
void function2();
private:
int c
}