std::vector<std::string> get_vector()

{

std::vector<std::string> a;

// a에 문자열 100개쯤 넣음

return a;

}


int main()

{

for (const auto &s : get_vector()) {

std::cout << s << std::endl;

}

}


코드 대부분을 이렇게 짰는데...


그런데 왠지 이렇게 하면 안되는 거 같아서...


ㅠㅠ...