标题:帮帮我改改,为什么错呢
取消只看楼主
会说话的青蛙
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2012-6-27
 问题点数:0 回复次数:1 
帮帮我改改,为什么错呢
#include "stdio.h"
main()
{ int tongji( char str1,int l,int int m,int n,int o);
    char str1[100];
    int a=0;
    int b=0;
    int c=0;
    int d=0;
   
   
    gets(str1);
    tongji(str1[00],a,b,c,d);
    printf("zimushu  shuzishu  konggegsu  \n");

    printf("%d%d%d%d",a,b,c,d);
}
   
int tongji(char str,int l,int m,int n,int o )
{char str[100];
int l=0;
int m=0;
int n=0;
int o=0;
 
    for(i=0;str[i]!='\0';i++)
    {if(str[i]>=65&&str[i]<=90||str[i]>97&&str[i]<=122) l++;
    else if(str[i]==32)   m++;
    else if(str[i]>=48&&str[i]<=57)n++;
    else o++;}
}
搜索更多相关主题的帖子: 122 include 
2012-07-01 16:07
会说话的青蛙
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2012-6-27
得分:0 
回复 2楼 embed_xuel
你回一个吧,让我看看咋的写
2012-07-01 19:15



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




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

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