Develop a c++ program that asks a user to enter a c
haracter and a sentence then displays the
location of that character present in that sente
nce (Assume space as a character).if character
is not present also report that .
For example:
Please enter the sentence:
I love Pakistan.
Please enter the character you want to search: a
Output:
---------------------------------------------------
-
The character
“
a”
is present on location(s)
9 , 14
This is my code below please tell me how to correct my mistake