如果剥离一个自然数的各个位置上的数_剥离数字_阳Younger的博客-CSDN博客

网站介绍:#include <iostream>using namespace std;int n,cnt;int arr[1000];void splitNum(int x){ while(x){ if(x<10){ arr[cnt++]=x; return; } else{ int y=x%10; // 保存个位上的数字 arr[._剥离数字