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
Get step-by-step solutions from verified subject matter experts
