| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 529 人关注过本帖
标题:c语言:字符串替换
取消只看楼主 加入收藏
妖妖零
Rank: 2
等 级:论坛游民
威 望:1
帖 子:5
专家分:10
注 册:2022-9-8
结帖率:100%
收藏
已结贴  问题点数:10 回复次数:0 
c语言:字符串替换
Description
ACM队吉祥物cjc学长因为一次做了太猥琐的事,被学嫂罚去写检讨书300字,于是他开挂去网上找样本,但是样本中的名字不一样会有破绽,现在需要你来帮忙替换样本中的名字name为学嫂的名字doctorZ。
Input
先输入一个T,代表有T组数据。
每组测试数据有一个数据name(0 < name < 20),表示样本中的名字。
接下来一行输入检讨书内容(name < s < 1000)。
Output
修改后的内容。
Samples
input
1
mwy
Dear mwy, do not be angry, I love you! I should not be so wretched, I was wrong, please forgive me. In the future, I will absolutely obey the leadership of you!
output
Dear doctorZ, do not be angry, I love you! I should not be so wretched, I was wrong, please forgive me. In the future, I will absolutely obey the leadership of you!
Hint
 在单词中出现name也需要替换!

搜索更多相关主题的帖子: name not 替换 the 名字 
2022-11-11 22:16
快速回复:c语言:字符串替换
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.010969 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved