for int i : vector c++ code example Example: std vector include c++ #include <vector> std::vector<std::string> x;