hi guys i am new to c++ and trying to learn. for instance. i have a struct and method.I am trying to learn what i can do with the method if i define the return type as struct type.
1 2 3 4 5 6 7 8 9 10
struct S
{
int age;
string name;
};
S method()
{
//what i can do in here. with the Struct. I mean can i reach members of the struct. etc
}