I have a problem with my code. I wrote a bool function above int main()
:
bool currency_(const char c)
{
while (c==' ')
{
if (c==('p', 't', 'e', 'd'))
{
return true;
}
else
{
return false;
}
}
}
I expect the program to work, but instead while compiling it shows "control reaches end of non-valid function".