题解 | #字符串去特定字符#
字符串去特定字符
http://www.nowcoder.com/practice/d5d0450134db4cb994a1b323a35262da
#include <iostream>
using namespace std;
int main(){
string str;
char c;
while(cin>>str>>c){
for(int i=0;i<str.size();i++){
if(str[i]!=c){
cout<<str[i];
}
}
}
return 0;
}