#include<iostream>
using namespace std;
void delChar(char* str,char c){
int i=0;
int j=0;
while(str[i]!='\0'){
if(str[i]==c){
str[i]='\0';
}else{
str[j]=str[i];
j=j+1;
}
i=i+1;
}
str[j]='\0';
}
int main(int argc,char* argv[]){
char str[100]=" hello world 1 hello world 1 123456789";
delChar(str,'9');
cout<<str<<endl;
}