Check out example codes for "howt o initialize 3d vector in c++". It will help you in understanding the concepts better.

Code Example 1

vector<vector<vector<int>>> dp(n+1,vector<vector<int>>(n+1,vector<int>(n+1,-1)));

Code Example 2

vector<vector<vector<double>>> f(3, vector<vector<double>>(4, vector<double>(5)));

Learn ReactJs, React Native from akashmittal.com