[b]This is a test to tell whether I really can edit the file this time!!![/b]
//////////////////////////////////////////////////////////////////////
#include <iostream.h>
#include "Client.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CClient, CObject, 0)
void CClient::Serialize(CArchive& ar)
{
CObject::Serialize (ar);
if (ar.IsStoring())
ar << mName << mGender << mAge;
else
ar >> mName >> mGender >> mAge;
}
CClient::CClient()
: mName("xxx"), mGender('X'), mAge(0)
{ }
CClient::~CClient()
{ }
void CClient::Input()
{
char name[20];
cout << "\n Name : "; cin >> name;
mName = name;
cout << " Gender : "; cin >> mGender;
cout << " Age : "; cin >> mAge;
return;
}
void CClient::Display() const
{
CString s;
s.Format ("%-10s %c %d", mName, mGender, mAge);
cout << s;
}
return to top