Hello,
I want to use this code (from my last question (thanks Adam)),
bool AllDigitsIdentical(int number)
{
int lastDigit = number % 10;
number /= 10;
while(number > 0)
{
int digit = number % 10;
if(digit != lastDigit)
return false;
number /= 10;
}
return true;
}
but the compiler just says in the second line at } :
Nested functions are disabled, use -fnested-functions to re-enable
What can I do in my case? I have no plan…
Thanks and sorry for my bad English.