title: Dynamic Array to be created in C++
body: <p>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</p>