Advertisement

程序设计实训作业1---字符串删除操作

阅读量:
  1. 【问题描述】

创建一个程序用于从一行英文中删除指定的字符串,并将其输出到结果页面上。提示:在查找该字符串时,请确保不区分大小写,并且该字符串可能有多个实例出现。

【输入形式】

从标准输入中接收一个指定长度不超过二十个字符的字符串(该字符串中不会包含空格),随后在同一行输入一段英文文字(每行末尾带有回车换行符)。

【输出形式】

将输入的英文内容进行删减指定字符串处理后并打印到标准输出;当无英文输入时则仅需添加一个空白行结束

【样例1输入】

The revised edition of "The C Programming Language" serves as a definitive reference for understanding the language as defined by the ANSI standard. Modern compilers efficiently handle a wide range of essential programming constructs, including but not limited to variable declaration, function invocation, and memory management.

【样例1输出】

The new edition of "The C P

全部评论 (0)

还没有任何评论哟~