Реферат: Моделирование структуры книги
return m_FirstPage; }
void SetFirstPage(WORD FirstPage)
{
m_FirstPage=FirstPage;
}
WORD GetLastPage()
{
return m_LastPage;
}
void SetLastPage(WORD LastPage)
{
m_LastPage=LastPage;
}
CGlava(){};
void Serialize(CArchive&);
};
Glava.cpp:
#include "stdafx.h"
#include "Glava.h"
IMPLEMENT_SERIAL(CGlava,CObject,0)
void CGlava::Serialize(CArchive& ar)
{
CObject::Serialize(ar);
if (ar.IsLoading())
{
ar>>m_Name>>m_FirstPage>>m_LastPage;
WORD Count,Counter;
ar>>Count;
for(Counter=0;Counter<Count;Counter++)