1#include <iostream> 2#include <fstream> 3#include <string> 4#include <vector> 5 6using namespace std; 7 8auto retVec(vector<string> original) 9{ 10 return original; 11} 12 13struct str 14{ 15 vector<string> _vec 16 { 17 "first", 18 "second", 19 "third" 20 }; 21public: 22 auto get_vec() { return _vec; }; 23}; 24 25int main() 26{ 27 for (auto e : str().get_vec()) // å±éº? 28 { 29 cout << e << endl; 3
{{#tags}}- {{label}}
{{/tags}}