Реферат: Моделирование структуры книги
ar>>m_Name>>m_FirstGlava>>m_LastGlava>>m_FirstPage>>
m_LastPage;
WORD Count,Counter;
ar>>Count;
for(Counter=0;Counter<Count;Counter++)
{
CGlava* Glava=new CGlava;
Glava->Serialize(ar);
m_Glavas.Add(Glava);
}
}
}
Glavas.h:
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Glava.h"
class CGlavas : public CObArray
{
public:
void DeleteGlavas();
};
Glavas.cpp:
#include "stdafx.h"
#include "Glavas.h"
void CGlavas::DeleteGlavas()
{
WORD Counter;
for(Counter=0;Counter<GetSize();Counter++)