By eHow Computers Editor
Rate: (1 Ratings)
Every programming language and library includes an array as part of its toolset. Arrays are useful because they allow convenient and efficient storage of data. The Microsoft Foundation Class Library provides the CArray class. It can store data of any type. CArray implements a resizable array that can shrink or grow upon demand. Follow these steps to practice the most commonly used features of CArray and implement it right away.
template < class TYPE, class ARG_TYPE > class CArray : public CObject |
CArray < CPoint,CPoint > pArr; pArr.Add(CPoint(20, 40)); |
void RemoveAt( int nIndex, int nCount = 1 ); |