哪里出问题了?
#include<stdio.h> int any(char s1[],char s2[]); void main() { int i; char s1[100],s2[100]={'o'}; for(i=0;i<=99;++i)scanf("%s",s1[i]); any(s1,s2);
} /*any: return first iocation in s1 where any char from s2 occurs*/ int any(char s1[],char s2[]) { int i,j; for(i=0;s1[i]!='\0';i++) for(j=0;s2[j]!='\0';j++) if(s1[i]=s2[j])/*match found?*/ return i;/*location first match*/ return 0; }