- Q4 String 20 Points Q4 1 Of Character 10 Points Given A String Write A Function That Count The Number Of A Particular 1 (28.71 KiB) Viewed 27 times
Q4 String 20 Points Q4.1 # of character 10 Points Given a string, write a function that count the number of a particular
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Q4 String 20 Points Q4.1 # of character 10 Points Given a string, write a function that count the number of a particular
Q4 String 20 Points Q4.1 # of character 10 Points Given a string, write a function that count the number of a particular character (case sensitive). E.g., string: "dfsbSSdDg", char: 'd' -> 2 int countChar(string text, char c); NOTES: See Q3.1. Enter your answer here Save Answer Q4.2 Character existance 10 Points Given a string, write a boolean function that check if a particular character exist in that string (case sensitive). E.g., string: "dfsbSSdDg", char: 'd' -> true (or 1) bool charExist(string text, char c); NOTES: See Q3.1. Enter your answer here Save Answer