0
Cpp program to replace string
Write a cpp program using class with function replace(char*str, char c1,char c2) every occurrence of c1 in str should be replaced with c2 and return number of replacement it makes
5 Respuestas
+ 5
Sounds for me like homework...
+ 1
https://code.sololearn.com/cLWDxI2yYWwD/#cpp
//You could have done this yourself, though.
0
Can you tell me why you need a class for this, when all you have to do is manipulate a c-string?
0
ok then give that code