so i got it to read and output the end of the string. However i wasnt it to count how many words in the string end with ab and then output that number. I know i have to use a if statement but not sure where to start.
i just enter a string. My goal is to enter a string and count how many words in that string end with ab. would i have to use a getline function to read the string?