If you have a question relative this thread then ask it here. Do not write a PM me. If you want to ask a question personally me you can do that at www.cpp.forum24.ru.
You can define the constructor inside the class definition or outside the class definition.
For example
1 2 3 4 5 6 7 8 9 10 11 12 13
class Details
{
public:
Details() : Age( 0 ), DoorNumber( 0 ) {}
string FirstName;
string LastName;
int Age;
string Email;
int DoorNumber;
string RoadName;
string PostCode;
};
Or
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class Details
{
public:
Details();
string FirstName;
string LastName;
int Age;
string Email;
int DoorNumber;
string RoadName;
string PostCode;
};
Details::Details() : Age( 0 ), DoorName( 0 ) {}