I guess that when you do string find[1] you're creating an array of strings containing just one string, hence to access that you should use find[0] instead of find[1] since find[1] would be outside the array. (If I'm wrong, somebody correct me)
Of course, it's pretty useless to create an array with just one element instead of just using the string object directly. (That is, just use std::string name instead of std::string name[0])
__________________
If atheism is a religion, then not collecting stamps is a hobby.
|