CodeToad Forums » C++ » Print the remaining characters in the string excluding the substring
|
|
|
I have a string str = " this is my name" , my start character is start = 's'
my end character is end = 'n'
char* truncate(char* str,char start,char end)
should remove the characters from the start to end and print the remaining characters
now the output would be
"thi ame"
anybody can help with the C++ code.
Thanks,
|
|
|
|
|
|
|
|