Menu

(Solved) : Exercise 1 Count Double Ch Parameters Function Return Many Times Two Occurrences Ch Found Q33162654 . . .

C++
Exercise #1: Count Double ch as parameters. The function will return how many times two occurrences of ch are found together in line. The main) is provided. You only need to implement the function countDoubles) Write the function countDoubles). The function will have a 1D char array (C-String) line of size 200, and char Sample Input/Output nter some text: Feel the sleep. Enter a character: e ee was found 2 times nter some text: Books are good food for the brain. Enter a character: o oo was found 3 times #include <iostream > #include <CString> using namespace std; int main() char t[20e], ch; int c; coutくくEnter some cin.get(t, 200); text: ; cout<<Enter a character: ; cin>>ch; c countDouble(t, ch); cout<<endl; outくくchc<ch<< found <<ccc was timesくくendl; turn e;Exercise #1: Count Double ch as parameters. The function will return how many times two occurrences of ch are found together in line. The main) is provided. You only need to implement the function countDoubles) Write the function countDoubles). The function will have a 1D char array (C-String) line of size 200, and char Sample Input/Output nter some text: Feel the sleep. Enter a character: e ee was found 2 times nter some text: Books are good food for the brain. Enter a character: o oo was found 3 times #include <iostream > #include <CString> using namespace std; int main() char t[20e], ch; int c; coutくく”Enter some cin.get(t, 200); text: “; cout<<“Enter a character: “; cin>>ch; c countDouble(t, ch); cout<<endl; outくくchc<ch<<” found “<<ccc” was times”くくendl; turn e; Show transcribed image text

Expert Answer


Answer to Exercise 1 Count Double Ch Parameters Function Return Many Times Two Occurrences Ch Found Q33162654 . . .

OR