I want to print out the contents of a vector in C++, here is what I have:
#include #include #include #include
In C++11 you can now use a range-based for loop:
for (auto const& c : path) std::cout << c << ' ';