Question: 5 . 1 1 . 4 : Functions with string parameters. 6 1 6 1 4 4 . 3 8 7 7 6 5 4
: Functions with string parameters.
qxzqy
Jump to level
Complete the function CountChars that has one string parameter and one character parameter. The function returns the number of characters in the string that are not equal to the character parameter.
Ex: If the input is sdrt mathbfx then the output is:
#include
using namespace std;
int CountCharsstring inputString, char x
Solution goes here
int main
string inString;
char x;
int result;
cin inString;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
