“`” 【参考答案】 int s earch(char* cpSource, intn , char ch) // 起始地址,搜索长度,目标字符 { int i; for(i=0; i<n && *(cpSource+i) != ch; ++i); return i; }</p> <pre><code> "“` Was this helpful? YesNo 0 / 0 上一篇: 请编写一个C 函数,该函数在一个字符串中找到可能的最长的子字符串,该字符串是由同一字符组成 下一篇: 请编写一个C 函数,该函数将一个字符串逆序。 发表回复 取消回复0 Your email address will not be published. 在此浏览器中保存我的显示名称、邮箱地址和网站地址,以便下次评论时使用。