热门

最新

红包

立Flag

投票

同城

我的

发布
weixin_44670876
Controller&Listener
6 年前
trueweixin_44670876

我用#CSDN#这个app发现了有技术含量的博客,小伙伴们求同去《Ubuntu安装问题的解决方案——(此主机支持Intel VT-x,但IntelVT-x处于禁用状态。)》, 一起来围观吧 https://blog.csdn.net/weixin_44222492/article/details/101153851?utm_source=app

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
求哪位大佬帮忙看一眼,这个题是用C语言写一个程序,输入一行数字字符 用整型数组统计其中每个数字字符的个数,下标为0的元素存放"0"的个数,下标为1的元素存放"1"的个数……求求了#include<stdio.h>int main(){char s[100];int i,l,a[10]={0,0,0,0,0,0,0,0,0,0};printf(“Please input.\n”);gets(s);i=0;while(s[i]){ switch(s[i]){ case 0:a[0]+=0;break;case 1:a[1]+=0;break;case 2:a[2]+=0;break;case 3:a[3]+=0;break;case 4:a[4]+=0;break;case 5:a[5]+=0;break;case 6:a[6]+=0;break;case 7:a[7]+=0;break;case 8:a[8]+=0;break;case 9:a[9]+=0;break;default:break; }i++;}for(l=0;l<10;l++)printf("%d",a[l]);}
立即登录