文件名称:Find_a_matching_string
介绍说明--下载内容均来自于网络,请自行研究使用
程序接收用户键入的一个关键字以及一个句子,如果句子中不包含关键字则显示’No match!’;如果句子中包含关键字则显示’Match’,且把该字在句子中的位置用十六进制数显示出来。要求程序的执行过程如下:
Enetr keyword:abc
Enter Sentence :We are studying abc.
Match at location:11 H of the sentence.
Enter Sentence:xyz,OK?
No match.
Enter Sentence:^C-Procedures for receiving a user types a keyword and a sentence, if the sentence does not contain the keyword is displayed No match! If the sentence contains keywords show Match , and the word position in the sentence by 10 the number of six-band show. Procedures for the implementation of the requirements are as follows:
Enetr keyword: abc
Enter Sentence: We are studying abc.
Match at location: 11 H of the sentence.
Enter Sentence: xyz, OK?
No match.
Enter Sentence: ^ C
Enetr keyword:abc
Enter Sentence :We are studying abc.
Match at location:11 H of the sentence.
Enter Sentence:xyz,OK?
No match.
Enter Sentence:^C-Procedures for receiving a user types a keyword and a sentence, if the sentence does not contain the keyword is displayed No match! If the sentence contains keywords show Match , and the word position in the sentence by 10 the number of six-band show. Procedures for the implementation of the requirements are as follows:
Enetr keyword: abc
Enter Sentence: We are studying abc.
Match at location: 11 H of the sentence.
Enter Sentence: xyz, OK?
No match.
Enter Sentence: ^ C
相关搜索: keyword
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Find_a_matching_string.doc