I need to parse both strings (str1 and str2) on the basis of demiliter (dot) and after that I need to compare correspondig strings separated by demiliter (i.e comparing "hgf" with "123" and comparinig "xyz" of str1 with "xyz" of str2) based on the string str3.
Also, while comparing str1 and str2, I need check in case an "*" caught in the str3 (first string before delimiter in str3), no comparison is required between "lmn" and "abc" (i.e. no comparision between string before first delimiter of str1 and str2)
While in case "#" is caught in str3 (as in case of string before second delimiter in str3), I need to check whether second string in str1 and str2 are exactly same or not (i.e compairing "xyz" of str1 and "xyz" of str2)?
Wow, that was a mouth full. What have you coded so far? What little I understand of your portrayal of the requirements, I'd say http://www.cplusplus.com/reference/clibrary/cstring/ would provide everything you need.
Unless, of course, you were asked to write your own functions.