Question: USE C++ Write a program that reads in characters from standard input and outputs the number of times it sees an 'a' followed by the

Write a program that reads in characters from standard input and outputs the number of times it sees an 'a' followed by the letter 'b'. Example, if the input was: baba ba fd abb The correct output would be "2" as there are only two instances of an a being directly followed by the letter b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
