Recognizing each digit of an integer
Hi! I was wondering if there was a more effective way to recognize each digit of a given integer. Given an integer called name, this is what I got.
Ohh and I was wondering if there any good sites to learn recursion. Thanks!!
float name, a;
int amountRead=0, maxRead=4617, f=1+log10(name),x,y,digits[f], b;
for(int i=0; i< f; i++)
cout << "digits= " << digits[i] << endl;