Hey all, I'm kind of in a predicament here. My C++ class was canceled because the teacher was sick, and the school server is now down so I can't access the lecture material, so I'm pretty confused on this recursion assignment.
We have to take a function and have it operate the same way using recursion, we have to do this for two classes, each are slightly different.
Class 1:
1 2 3 4 5 6 7 8 9 10 11 12 13
bool Integer::isNaN(string s)
{
string::iterator p;
for (p = s.begin(); p < s.end(); p++)
{
if (!isdigit(*p) && *p != '.')
{
returntrue;
}
}
returnfalse;
}