string question

It's possible ?(str[1], str[2] are strings)
1
2
// string str;
cout << str[1] << str[2];
Last edited on
yes
i mean a string matrix, so str[1] is a string and str[2] another one.
Last edited on
Classes -as std::string- can be used as any other type
1
2
string str[3];
cout << str[1] << str[2];
thanks!
Topic archived. No new replies allowed.