Hi,
Suppose I have a character array with the elements B,A,A. Now I have another character array with the elements A,B,B,B,A,A. How do I match the pattern B,A,A of the first character array with that of the second character array so as to produce the following output:
A B B B A A
- - - B A A
In other words, if a pattern is detected, the letters in a character array not matching any characters of the other array will have a dash underneath as shown.
I will really appreciate if somebody suggests some codes in C++.
Thanks