Please post how you declared array1 and array2. Are they std::string objects or std::vector objects? Or maybe even something else ?
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
>>All the Elements in both the columns are compared first.
do you mean that it compares all the columns in array1[0] with all the columns in array2[0] ? Lets assume there are three solumns in row 0 of each vector, like this:
array1[0][0] = "east tennessee";
array1[0][1]= "west virginia";
array1[0][2]= "north cariolina";
array2[0][0]= "virginia";
array2[0][1]= "cariolina";
array2[0][2]= "georgia";
Its not clear (to me) just what you want to do with all those strings. start with the first column in array2 ("virginia") and try to find it in all the columns of array1 (which would be in array1[0][1]) ?
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343