// Chip.h: interface for the CChip class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_CHIP_H__36651B89_BF57_4CEC_B19A_E9D688D0D4A4__INCLUDED_) #define AFX_CHIP_H__36651B89_BF57_4CEC_B19A_E9D688D0D4A4__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CChip // this class defines a chip object with all of its properties . { public: int value;// value of achip object shows that it is a 1-chip or 0-chip or maybe bigger than one. BYTE size;// number of subchips in this chip object=usually SubChipPerChip. BYTE* SubChip;// the array of subchips in this chip object. CChip(int SubChipSize=0);// the constructor of this object that alocate an array of subchips with the length of subchip size. virtual ~CChip();// the deconstructor of this object that release the memory alocated by the array of subchips. }; #endif // !defined(AFX_CHIP_H__36651B89_BF57_4CEC_B19A_E9D688D0D4A4__INCLUDED_)