View Code of Problem 55

#include<iostream>
using namespace std;
int main(){
  char s[90];
  char c;
  scanf("%[^\n]%c", s,&c);
  for(char* cur = s;cur!= '\0';cur++){
    if(*cur != c){
      cout << *cur;
    }
  }
  return 0;
}

Double click to view unformatted code.


Back to problem 55