![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
|
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 returnWould that work in your situation?
__________________
<b>Always remember:</b> Incredibly massive space-time distortions are not easily ignored. |
|
|
|
|
|
#12 |
|
Newbie
Join Date: Jul 2004
Posts: 18
Rep Power: 0
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|