| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Cset ++ |
* In a message originally to Dave Looney, Bill Patterson writes: DL> Bill Patterson Wrote: DL> DL> BP> Sometimes the simplest things are the hardest. I'm DL> BP> converting some of my code from "C" to "C++" using Cset ++. DL> BP> So far so good... except for one little problem. I can't DL> BP> seem to find a way to accept JUST a carriage return. DL> BP> cin.get() won't return just a CR as far as I can tell. Nor DL> BP> will cin.read(). DL> BP> DL> BP> cout << "\n\n Hit return when ready\n"; DL> BP> cin.ipfx(0); DL> BP> cin.get(mychar); DL> DL> Borland C++ does just as you wish with the following: DL> char ch; DL> cout << "\n\n Hit return when ready\n"; DL> while (ch!='\n') cin.get(ch); DL> DL> Dave Looney DL> [Team OS/2] DL> DL> ___ DL> X KWQ/2 1.2b X Windows is fne for Hih Sped Communicatns ... DL> DL> --- Maximus/2 2.02 Very interesting! I tried something very simular, will try this too! Thanks. Bill --- LoraBBS-OS/2 v2.40+DL> * Origin: OS/2 Connection {at} Mira Mesa, CA (1:202/354) * Origin: Planet X * Warp Co-Ordinates: 407-799-0975 (1:374/2528.0) SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 374/2528 1 3615/50 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.