字符串处理的常见问题
tot=0;
for(i=0;i<strlen(s);i++)
if (s[i]==1) tot++;
printf(“There are %d character(s) ‘1’ in the string.\n”,tot);
20190102算法竞赛入门经典第一部分语言篇
最新推荐文章于 2023-08-27 00:48:34 发布
字符串处理的常见问题
tot=0;
for(i=0;i<strlen(s);i++)
if (s[i]==1) tot++;
printf(“There are %d character(s) ‘1’ in the string.\n”,tot);