Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 7th, 2004, 4:19 PM   #11
Ben-Arba
Newbie
 
Ben-Arba's Avatar
 
Join Date: Jul 2004
Posts: 24
Rep Power: 0 Ben-Arba is on a distinguished road
Send a message via AIM to Ben-Arba
How about a variation of:

char c;
do {
  c = getch();
  if (c >= 'a' || c <= 'z') c += 'A' - 'a';
  // could be safe to use -32 instead of 'A' - 'a'
  // here - stick c into a string or something
} while (c != /* terminating char */);
// where "terminating char" is likely return

Would that work in your situation?
__________________
&lt;b&gt;Always remember:&lt;/b&gt; Incredibly massive space-time distortions are not easily ignored.
Ben-Arba is offline   Reply With Quote
Old Aug 8th, 2004, 6:45 AM   #12
Alhazred
Newbie
 
Join Date: Jul 2004
Posts: 18
Rep Power: 0 Alhazred is on a distinguished road
I repleaced strupr() with toupper(), so I use a char in place of char *, it's really better

@ Ben-Arba: I think your solution would work too.
__________________
<span style='color:blue'>Hayaki koto kaze no gotoku.</span> <span style='color:green'>Shizukanaru koto hayashi no gotoku.</span>
<span style='color:red'>Shinryakusuru koto hi no gotoku.</span> <span style='color:brown'>Ugokazaru koto yama no gotoku.</span>


My house in Rome: http://lacasa.altervista.org
Alhazred is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:22 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC