当前位置:网站首页>统计字符数C
统计字符数C
2022-04-22 20:52:00 【大今野】
不用说,干就完了
#include <stdio.h>
void fun(char *s int *t)
{
int i=0;
int n=0;
for(i=0;s[i]!=0;i++)
{
if(s[i]>'0'&&s[i]<=='9')
n++;
}
}
main()
{
char s[80]="nd242id242s242nf324i";
int t=0;
printf("\n 这个数组的数字:%s\n",s);
fun(s,&t);
printf("\n结果是%d\n",t);
return 0;
}
代码之余
男人像一条小船
小时候总觉得寂寞
我在中央好生寂寞
年龄大了,却也走的远了
今天我早起了,
昨天也一样,
明天也一样,
未来,
遥遥无期,
但是向前一步,
还有大概8年,
只要坚持下去,
也就成了,
也就舒坦了。
版权声明
本文为[大今野]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45755863/article/details/124337653
边栏推荐
- 2020团队设计天梯赛(部分)
- Ziguang Guowei: it is actively expanding the category of analog chips, and some products have been sold in batches
- 华中师范大学少年儿童组织与思想意识教育考研上岸前辈备考经验
- 基于SEIR模型的传染病预测软件开发
- 打造新一代计算平台,STEPVR将在2022开启元宇宙“大门”
- Huawei machine test questions summary
- Write ppt with markdown
- 2020 team design ladder competition (part)
- 用MarkDown写PPT
- 转载:程序员的发展方向
猜你喜欢

Virtual machine building and installation pulsar environment tutorial (for development and testing)

一、机器学习概念

MySQL主从复制之异步复制

What are the types of documenter examination questions? How to prepare for the documenter examination of the construction department

Error running ‘JeecgSystemApplication‘: Command line is too long. Shorten command line for JeecgSyst

UnityShader入门精要——素描效果渲染

二、线性回归
Reprint: the development direction of programmers

基于PAOGD_HW1的弹出的小球-简单建模、插值动画

第一章 虚拟现实技术概论
随机推荐
buuctf-[Flask]SSTI
Lenovo computer housekeeper graphic introduction: how to download Lenovo computer housekeeper?
MySQL开发技巧
MySQL development skills
如何让机器人更像“人”,让slam更灵活?
The interviewer would rather have my younger brother who has just graduated and worked for one year than me who has worked for five years, with an annual salary of 25W
Ordinary functions as friends (using examples to solve friend functions)
Virtual machine building and installation pulsar environment tutorial (for development and testing)
LeeCode 130. 被围绕的区域
一、机器学习概念
华为机考题汇总
站长工具大全-站长软件网站-站长工具网站-站长必备工具免费
UnityShader入门精要——素描效果渲染
阿里面试官:简历上最好不要写Glide,不是问源码那么简单
MySQL 第8章 数据库约束
工控安全解决方案
第一章 虚拟现实技术概论
7-1 C language programming experiment 6-3 insertion of one-way linked list (30 points)
Redis's key and value best practices
博途PLC用户自定义数据类型