For example, if we initialize vector<vector<vector<double>>> f
, the dimension in each direction is not specified. So, I am wondering, what command should we insert to make f
have size of [3][4][5]
. Do we use new or something else?
Thanks for helping me out!
vector<vector<vector<double>>> f(3, vector<vector<double>>(4, vector<double>(5)));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With