文件名称:match(s--ch)
介绍说明--下载内容均来自于网络,请自行研究使用
输入一个字符串和一个字符,如果该字符在字符串中,就从该字符首次出现的位置开始输出字符串中的字符。例如,输入字符r和字符串program后,输出rogram。
要求定义函数match(s, ch),在字符串s中查找字符ch,如果找到,返回第一次找到的该字符在字符串中的位置(地址);否则,返回空指针NULL.-Enter a string and a character position if the character in the string, the first occurrence of the character the beginning of the output string of characters. For example, enter the characters r and string program, output rogram.
Requirements defined functions match (s, ch), find the character ch in the string s, if found, return first to find the character position (address) in the string otherwise, returns a null pointer NULL.
要求定义函数match(s, ch),在字符串s中查找字符ch,如果找到,返回第一次找到的该字符在字符串中的位置(地址);否则,返回空指针NULL.-Enter a string and a character position if the character in the string, the first occurrence of the character the beginning of the output string of characters. For example, enter the characters r and string program, output rogram.
Requirements defined functions match (s, ch), find the character ch in the string s, if found, return first to find the character position (address) in the string otherwise, returns a null pointer NULL.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
| ||
定义函数match(s | ch).txt |