Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
Recursive Character Search and Destroy
1
Name:
Anonymous
2007-05-11 16:50
ID:tCgeez6Q
I receive a string, and I want to remove any 'a', 'b' and 'c' characters, in a recursive way.
How do I do this in C and Java?
Thanks
16
Name:
Anonymous
2007-05-11 18:10
ID:bLm7QA6k
char *removeCharacters(char *string,char removeMe)
{
int i;
int length;
for(length = 0;string[length]!='\0';length++){}
char *newString = malloc(sizeof(char) * length);
for(length = 0;string[length]!='\0';length++)
{
if(string[length]==removeMe)
{
for
}
}
}
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List