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