how to use find and split for a vector code example
Example: Split a number and store it in vector
#include <bits/stdc++.h>
using namespace std;
main() {
int n = 1213456;
vector<int> v;
for(; n; n/=10)
v.push_back( n%10 );
reverse(v.begin(), v.end());
for (auto &i : v) cout<<i;
}