ok so i forgot, but in php or perl, or maybe both, i could compare lets say a string with the letters a to z or A to Z by doing a-z, A-Z respectively instead of having to type out all the letters themselves. the game goes with numbers.
my question is how do i do this in c++? cause i've tried to the it with the same syntax and it didn't work
you're right, it is overkill but i thought that it was built in c++ like it is in perl.
i have a question, those functions in cctype only works with individual characters. im using strings. but when it did for ex, isdigit(string[1]), it did not work. i mean isn't a string a char array? so shouldn't string[1] actually be a char? i don't want to convert every string to chars, especially since they should already be a char array and also im dealing with a very large problem and many words.
@ Albatross ahhh i see, thanks alot man, i guess i just have more work to do then. but for future references , how do i check the return type of stuff, such as operators? i can check the size in bytes of something using sizeof() but how do i check for return type? is their a function or did you just your the reference on this site?