Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( Check(len1, len2, str1, str2) )
- {
- for(int i = 0; i < len2; i++)
- {
- for(int j = 0; j < len1; j++)
- {
- // Check to see if str2 at position i is equal
- // to the character at str1 position j
- if str2[i] == str1[j]:
- // It is! Now check to see if it's been found already
- if hasBeenFound(found_letters, str1[j])
- // Apparently it hasn't! hasBeenFound returned a 1
- // So now str1 at position j will be added to our found letters
- found_letters.add(str1[j])
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement