Having major problems(C++ student) trying to figure the code that will report the number of instances of a character in a string.
Using elementary code (Borland Builder5)
The section of code has to:
read in a string value from the keyboard
read in a character from the keyboard
report the number of occurrences of the character
then replace the selected character with the asterisk character and write out the revised string.
Any help appreciated



LinkBack URL
About LinkBacks




I seem out of my depth here, dont want to waste peoples time but do want understand the subject. The ReadStringPr etc. are as I have used them in my course so far. (Would the fact i'm on a course modified version of Borland builder have any bearing on the matter?)