I want to store multiple strings in an array. I have made an array, but I do not know how to get multiple string inputs to store in the array. Please post code
Thanks
I want to store multiple strings in an array. I have made an array, but I do not know how to get multiple string inputs to store in the array. Please post code
Thanks
how about an array of arrays?
Read your recommended text on how to use arrays, I assume you are a student. If not, google C++ Array and start reading... perhaps just read the link in my sig.
Code:std::vector<std::string> stringArray; stringArray.push_back( "Hello" ); stringArray.push_back( "World" ); ...