Write a program that ask user for a string of length 10, then count and print the number of character C in this string,
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a program that ask user for a string of length 10, then count and print the number of character C in this string,
Write a program that ask user for a string of length 10, then count and print the number of character C in this string, ignore case. ( Ex: input: Coco Ciao! output: 3 (3 C's) Write a function called allCapital that takes a string variable and update all character to capital letter in the string. Ex: int main(){ string st = "Hi! I love race car."; allCapital(st); cout << st << endl; //print out: HI! I LOVE RACE CAR. return 0; }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!