📜  c++ 向量 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:54.049000             🧑  作者: Mango

代码示例2
#include 
#include 

int main() {
  std::vector str_v;
  str_v.push_back("abc");
  str_v.push_back("hello world!!");
  str_v.push_back("i'm a coder.");
  for(auto it = str_v.beigin();it != str_v.end(); it++) {
      printf("%s\n",it->c_str());
  }
}