Is it possible to make a string array?

closed account (jwkNwA7f)
Thank you!
Last edited on
1
2
std::string arr[100]; //An array of std::strings
std::vector<std::string> contain; //A container of std::strings 


Or are you referring to C-strings stored in char*?
1
2
char** string_arr; //Pointer to an array of pointers to arrays of chars
std::vector<char*> string_contain; //A container of pointers to char arrays 
closed account (jwkNwA7f)
I was talking about strings.

Thank you!
Topic archived. No new replies allowed.