// // g++ -std=c++0x t1.cpp -o t1 // #include <string> #include <iostream> #include <vector> int main(int argc, char ** argv) { std::vector<std::string> lst = { "a", "b", "c"}; for(std::vector<std::string>::const_iterator it = lst.begin(); it != lst.end(); ++it) { std::cout << (*it) << ' '; } std::cout << std::endl; }