Check out example codes for "store arbitrarly large vector of doubles c++". It will help you in understanding the concepts better.

Code Example 1

typedef std::vector<int> int_vector;
int_vector dp(10000);

Learn ReactJs, React Native from akashmittal.com