I dont understand how C++ has the ability to count vowels and consonants appearing in a string and return separate and combined results while repeating until a user hits E on the menu to exit. Elaborate with source code and output so I can better understand the flow.