#include <stdio.h> #include <string.h> using namespace std; int main(){ char str[10000]; char c; gets(str); scanf("%c", &c ); for( int i=0; i<strlen(str); i++ ){ if( str[i] != c ){ printf("%c", str[i]); } } return 0; } |
Double click to view unformatted code.