Hot answers tagged


You have made a mistake that is very frequent among novice programmers, you check for the returned bool using ==. You should instead use something like: if (islower(text[i])) { // do things... } The reason your code produces no output, is the fact that islower() doesn't return a bool, but an int. Behind the scenes, true == 1 and false == 0, but ...

Only top voted, non community-wiki answers of a minimum length are eligible