What do I need to include for isalpha()?
Everything I've seen online isn't working.
I need to use isalpha(char). For example:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
if (m_parse_success == false){
return *this;
}
size_t pos = 0;
for (; pos < m_end; pos++){
if (isalpha(m_str[pos] && (pos == m_end - 1))){
m_parse_success = true;
}
else if(!(isalpha(m_str[pos]))){
m_parse_success = false;
}
}
return *this;
|
Try googling "man isalpha" or just "isalpha" and it will tell you which header to include.
Also, on line 6 you have a closing parenthesis in the wrong place.
Hope this helps.
Got it, thanks. Just had to put std:: in front.
Topic archived. No new replies allowed.