#includeint main(void){ char c; int num=0; while((c=getchar())!='*') { if(c>='0'&&c<='9') num++; } printf("\n%d\n",num); return 0;}iostream?! 那是C++里的了吧