#include <iostream> #include <string.h> using namespace std; int main(){ char c[1000],ch; gets(c); cin>>ch; getchar(); int len = strlen(c); for(int j=0;j<len;j++){ if(c[j]==ch) continue; else printf("%c",c[j]); } return 0; } |
Double click to view unformatted code.