From: David Whitcombe Newsgroups: comp.os.msdos.djgpp Subject: Challenge for C++ programmers: Date: Fri, 16 Apr 1999 20:08:20 +0000 Organization: Rocky Mountain Internet - 1(800)-900-RMII Lines: 12 Message-ID: <371798B4.C73F0A4C@rof.net> NNTP-Posting-Host: 209.38.35.87 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: news1.rmi.net 924293328 22828 209.38.35.87 (16 Apr 1999 20:08:48 GMT) X-Complaints-To: abuse AT rmi DOT net NNTP-Posting-Date: 16 Apr 1999 20:08:48 GMT X-Mailer: Mozilla 4.51 [en] (X11; U; Linux 2.0.36 i586) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id PAB32543 Reply-To: djgpp AT delorie DOT com Here's the challenge: Implement (in 100 lines or less) a "press any key to continue" routine using only iostreams. No calls to getch() (You don't have to allow for shift, ctrl, alt, meta, caps-, scroll- or numlock, but the routine needs to exit (possibly returning the key pressed) when a regular, printable character is pressed (or newline, for that matter...)) Um... I guess I put the requirements in a parenthetical comment. Anyway that's it. I've tried, and I've tried, and I've always just ended up saying, "Well, good coding style bedamned! I'm just gonna #include and call getch()!" Good Luck!