解题思路:
注意事项:
参考代码:
#include <bits/stdc++.h>
using namespace std;
char c[32],l,k;
int main()
{
cin>>c;
cin>>l>>k;
for(int i=0;i<strlen(c);i++)
{
if(c[i]==l) c[i]=k;
}
cout<<c;
return 0;
}
0.0分
0 人评分
【出圈】 (C++代码)(典型的约瑟夫环——链表解决)浏览:1272 |
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:538 |
输出正反三角形 (C语言代码)格式错误!!!浏览:1173 |
简单的a+b (C语言代码)浏览:377 |
1157题解浏览:760 |
A+B for Input-Output Practice (VII) (C语言代码)浏览:562 |
蚂蚁感冒 (C语言代码)浏览:802 |
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:325 |
单词个数统计 (C语言代码)浏览:1043 |
输入输出格式练习 (C语言代码)浏览:764 |