Run ID:81823
提交时间:2024-07-12 15:38:55
#include<bits/stdc++.h> using namespace std; int main(){ char s[201]; char a,b; cin >> s; cin >> a >> b; for(int i = 1;i <= strlen(s);i++){ if(s[i] == a){ s[i] = b; } } for(int j = 1;j <= strlen(s);j++){ cout << s[j]; } return 0; }