编辑代码

#include <stdio.h>
int main () {
    //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 
	//printf("Hello world!     - c.jsrun.net.");
    char str[50] = {"hhhs2019h4hm88hh#"},*low=str,*high = str;
    int num[10]={0},sum=0,n=0,h=0;
    while(*low != '#'){
        if('0'<= *low && '9' >= *low){
            high = low;
            while('0' <= *high && '9'>=*high){
                high++;
            }
            while(low <high){
                n = n*10+(*low-'0');
                low++;
            }
            num[sum++] = n;
            n=0;
        }
        if(low != '#'){
            low++;
        }
    }
    for(int i=0;i<sum;i++){
        printf("%d\n",num[i]);
    }
	return 0;
}