Class Member Print Out

 

Let's assume I have one class defined as follows:


class Test

{

public:

string CheckValue

Test ()

{};

};

Ontick

{

Test MyObject;

}

How can I have following Print Out

(I want to create a function, that returns the member of the class/object)

List of MyObject Members:

string Checkvalue

I don't have any use for this yet, just doing for studying purpose


Thank You in advance

 

There is no simple way to do that, you need to code it yourself.

Please use the appropriate formatting when you post code.