Create N-Dimensional Vector with Preset Values in C++
14 Jan 2016
A simple 2D vector can be initialized with preset values using fill constructor.
This will result in a 5x4 vector of strings with “1” in each cell.
Similarly, a 3D vector can also be initialized like the following.
This will result in a 5x4x3 vector of strings with “0” in each cell.