Hi,
I'm doing a personal cpp challenge to help me learn. My program takes an integer (int x) and loops that in a cin input for that many strings. (string 1)
For instance, int x =4.. the loop cins string 1 four times.
Then, I'm creating a an if (find) to search each string for the letters CD appearing in that order.
Then, I want it to spit out how many of the string y's had those letters.
However, my code just spits out the loopcounter number for each time it finds those letters. How can I fix this so that I just get the number of times it is found?
edit** Actually, I need the number of times those letters DO NOT show up. **