create vector of 0s of set size c++ code example Example: how to initialize a vector in c++ std::vector<type> name;