Реферат: Моделирование структуры книги
CGlava* Glava=(CGlava*)GetAt(Counter);
Glava->GetPages()->DeletePages();
delete Glava;
}
RemoveAll();
}
Glava.h:
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Pages.h"
class CGlava : public CObject
{
DECLARE_SERIAL(CGlava)
private:
CPages m_Pages;
CString m_Name;
WORD m_FirstPage;
WORD m_LastPage;
public:
CPages* GetPages()
{
return &m_Pages;
}
CString* GetName()
{
return &m_Name;
}
WORD GetFirstPage()