#include <stdio.h>
#include <string.h>
int char_contains(char str[],char c)
int main ()
8 {
int result = char_contains("itcast",'t');
printf("%d\n",result);
return 0;
}
int char_contains(char str[],char c)
16 {
for (int i=0; i<strlen(str);i++)
{
if (str[i] == c)
{
return 1;
}
}
return 0;
25 }
各位高手 8.16.25行提示错误,检查了好多遍了,检查不出问题 ,我哭! |
|