在某字符串中查找子字符串第一次出现的位置字符串中的位置用0,1,2,3...表示 如该字符串不包含子串则返回 -1, 包含返回 位置 #include "stdio.h" int f(char *s, char *a) { int
2022-12-18
在某字符串中查找子字符串第一次出现的位置字符串中的位置用0,1,2,3...表示 如该字符串不包含子串则返回 -1, 包含返回 位置 #include "stdio.h" int f(char *s, char *a) { int
2022-12-18