标题:哪里出问题了?
取消只看楼主
freeday_zhao
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2004-12-11
 问题点数:0 回复次数:0 
哪里出问题了?

#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; }

搜索更多相关主题的帖子: void include return occurs 
2005-01-12 01:28



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-11132-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.052651 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved