Question: 1. write a program in C++ to get input string from user. Also get a character from user to search. Print number of occurence's of

1. write a program in C++ to get input string from user. Also get a character from user to search. Print number of occurence's of that character. (include comment)

example Hello world

Character to search: l

Number of occurences of l in string is 3

2. Write a program in C++ to get a sentence from user and print number of words in it.

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!