Re: [Dev-C++] trying to minimize code
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2005-05-24 15:22:06
|
You think about: #include <ctype.h> int toupper(int c); int tolower(int c); There are also a couple of similar functions directly for the Win32 API, for Unicode, wide characters, ... Note that setlocale() affects treatment. /Per W On Tue, 24 May 2005, Patel, Nilesh M wrote: > Anyone know if there is a function call in c++ where if the user enters an 'A' or an 'a' it would be displayed as an 'A'. I know I can use an OR ( || ). Which I can use and works perfectly fine, but I was just curious is there was a function call in c++ that if any letter was entered it would be taken as a capital letter. I need to do this to about 15 letters. Any suggestions? Or should I just stick to the OR method. Thanks. > |