![]() |
|
#1
|
|||
|
|||
Checking Capital Letters against Lower CaseI have worked out how to check if a word is the same frontwards and backwards, I now need to check if they are capital letters or lower case letters - can anyone throw any light on the if statement I would need - currently for checking the letters backwards and forwards I have:
CPP / C++ / C Code:
It is the condition that I think needs changing but I am not sure where to start? Any help would be appreciated. Thanks. Annette Last edited by LuciWiz : 20-Mar-2005 at 10:03.
Reason: Please insert your C code between [c] & [/c] tags
|
|
#2
|
||||
|
||||
|
Look into the functions toupper() and/or tolower(). Therein lies your solution.
Also, you might want to start using code tags. You have been asked to do so 3 times so far. __________________
Age is unimportant -- except in cheese |
Recent GIDBlog
Meeting the local Iraqis by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compiling Errors | ToddSAFM | C++ Forum | 22 | 18-Dec-2004 11:42 |
| Problems with switch statement | dontcare | C++ Forum | 4 | 29-Nov-2004 18:28 |
| fltk-2.0 cvs | Plumb | FLTK Forum | 20 | 13-Nov-2004 07:10 |
| there has to be a better way | dabigmooish | C++ Forum | 8 | 17-May-2004 10:24 |
| C++ file I/O | CronoX | C++ Forum | 36 | 09-Mar-2004 17:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The