I need to create a dynamic array whose elements may increase/decrease as per the value of an ‘X’ variable which the user specifies, I tried using CArray but VS 2010 does not support its header file, ‘afxtempl.h’, is there a work around? IF not, is there an function except CArray which is for c++ and not for compilers..
Thank you
I need to create a dynamic array whose elements may increase/decrease as per the
Share
Don’t use CArray since its meant for MFC, instead learn to love your STL. Use
std::vector,Check out, http://www.sgi.com/tech/stl/Vector.html for a quick reference