Question: If possible write it in c++; Im having a problem with the code below when I enter more than one words and wanted to fix

If possible write it in c++; Im having a problem with the code below when I enter more than one words and wanted to fix it. So if the user is counting for 'o' and the string they enter is "Today is Monday" than the count is 2

If possible write it in c++; Im having a problem with the

12 #include 13 using namespace std; 14 15 int main() { 16 char ch; 17 string str; 18 int count = 0, i; // initialize count to O 19 //ask user for char they want to count 20 cout> ch; 22 //ask user for string of characters 23 cout>str; 25 26 for (i = 0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!