What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » C Programming Question

C Programming Question
Author: Message:
J-Thread
Full Member
***

Avatar

Posts: 467
Reputation: 8
– / Male / –
Joined: Jul 2004
RE: C Programming Question
How about

code:
int num = (int)'A'

So if m is a char:
code:
if ((int)m >= (int)'A' || (int)m >= (int)'Z')
printf("It is a capital letter");

I don't do C++ but I know a lot of programming languages and this is a method that is sometimes used...
10-03-2005 08:27 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
C Programming Question - by John Anderton on 10-03-2005 at 06:48 PM
RE: C Programming Question - by Yousef on 10-03-2005 at 07:03 PM
RE: RE: C Programming Question - by Plik on 10-03-2005 at 07:06 PM
RE: C Programming Question - by John Anderton on 10-03-2005 at 07:18 PM
RE: C Programming Question - by Plik on 10-03-2005 at 07:25 PM
RE: C Programming Question - by John Anderton on 10-03-2005 at 07:33 PM
RE: RE: C Programming Question - by segosa on 10-04-2005 at 06:09 AM
RE: C Programming Question - by J-Thread on 10-03-2005 at 08:27 PM
RE: C Programming Question - by John Anderton on 10-04-2005 at 07:45 AM
RE: C Programming Question - by RaceProUK on 10-04-2005 at 10:46 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On