What do these lines of code mean?

Question says it all.

1
2
3
4
5
6
 //Number 1:
int length;
length = (int)input.length();

//Number 2:
isalpha(input[count])
Last edited on
And how bout this part:


(input[count])
You didn't show the definition of input, but presumably it is a std::string.
input[n] returns the n'th character of the string.
http://www.cplusplus.com/reference/string/string/operator[]/

Topic archived. No new replies allowed.