标签:io for ar amp res har c print
#include<stdio.h> void fun(char *s,int *t); main() { char s[80]="as15dw1zxx1"; int t; printf("\nThe original string is :%s\n",s); fun(s,&t); printf("\nThe result is :%d\n",t); } void fun(char *s,int *t) { int i,n; n=0; for(i=0;s[i]!=0;i++) if(s[i]>='0'&&s[i]<='9') n++; *t=n; }
标签:io for ar amp res har c print
原文地址:http://blog.csdn.net/u013116579/article/details/38619237