How to print out the contents of a vector?

后端 未结 19 1170
旧时难觅i
旧时难觅i 2020-11-22 03:46

I want to print out the contents of a vector in C++, here is what I have:

#include 
#include 
#include 
#include         


        
19条回答
  •  你的背包
    2020-11-22 04:28

    In C++11``

    for (auto i = path.begin(); i != path.end(); ++i)
    std::cout << *i << ' ';
    
    for(int i=0; i

提交回复
热议问题