Can someone tell me what the following loop would do? S is an array and this program uses ctype.h..
while (s[i])
{
if (isalpha(s[i]))
digit=toupper (s[i])-'A'+10;
else if (isdigit(s[i]))
digit=s[i]-'0';
else cout << "You have entered an illegal character." << endl;
sum = sum * ibase + digit;
i++;
}