delete a character

Hello..

I would like to know how i can delete an character.. is there any function or any command that i can use..

Thanks in advance!!
If character is in console:
cout <<"\b \b";
Actually i have this problem..

i have for example

this, is, a, sentence

and i need to delete the comma
Where is that sentence? (in a string, in a char array, in a file, on the terminal window ...)

It's a string.

char[30]="this, is, a, sentence";

and in need to delete the commas!!!

Thanks so much for any help.
You can make a loop and move the other characters when you find a comma:
1
2
3
char cs[30]="this, is, a, sentence";
for ( unsigned i = 0, l = strlen(cs); i<l; i++)
    if ( cs[i]==',') memmove(cs+i,cs+i+1,l-i);
Topic archived. No new replies allowed.