| I am using movie_name.resize(idx) to resize |
movie_name.resize(idx + 1) if you want to use idx for accessing data of that vector.
string movie_name[25]; has 25 distinct string objects in consecutive memory locations. The first object is at movie_name[0] and the last in movie_name[24].std::array http://www.cplusplus.com/reference/array/array/array<string,25> movie_names; |
|