摘要: 4.1编写函数strindex(s,t)它返回字符串t在s中最右边出现的位置。如果s中不包含t,则返回-1。 官方答案多一个变量 j , 用来记录i , j = i;多判断了t[k] == '\0' 结果得到的一直是-1 #include "stdafx.h" int strindex(char s 阅读全文
posted @ 2023-07-31 10:09 Maguyusi 阅读(46) 评论(0) 推荐(0)