Code:
while (CheckPalindrome == false)
{
cout << "hi";
i = number;
r = RevNum(i);
adds++;
CheckPalindrome(i);
}
bool CheckPalindrome(int i)
{
bool Check = false;
if (i == rev)
{
Check = true;
}
return Check;
}
For some reason it just skips right over the while loop. I'm not sure if it is a problem with the boolean or a problem with the syntax in the while loop.