I want to print out the contents of a vector in C++, here is what I have:
#include #include #include #include
This worked for me:
for (auto& i : name) { int r = 0; for (int j = 0; j < name[r].size();j++) { std::cout << i[j]; } r++; std::cout << std::endl; }