Article View: alt.comp.lang.learn.c-c++
Article #717Re: please help me with this problem
From: Martin Ambuhl
Date: Fri, 16 Jul 1999 00:00
Date: Fri, 16 Jul 1999 00:00
17 lines
2634 bytes
2634 bytes
KDK wrote: > > The reason is the scanf() function you use to get a character for the > martial status of a person. One way is to use getch() which returns only a > character. But getch() does not echo the entered character to the screen. So > you might also use printf() to put the character to the screen. There is no getch() function in standard C. Try getc(), fgetc(), and getchar(). Even better is fgets(). If you must use responses to single-key presses, which is not obvious, then you are using implementation-specific functionality. This should be addressed in a newsgroup for your implementation. That means one other than ANY of the 9 newsgroups to which this has been posted. And try to avoid such massive crossposting in the future. I don't believe for a minute that you follow all these groups. It is extremely rude to post to groups you don't read. -- comp.lang.c.moderated - moderation address: clcm@plethora.net
Technical Details
Message-ID:
<clcm-19990716-0001@plethora.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<clcm-19990714-0004@plethora.net> <clcm-19990715-0012@plethora.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114a87,488b53d56236ec72 X-Google-Attributes: gid114a87,public X-Google-Thread: 1111a3,488b53d56236ec72 X-Google-Attributes: gid1111a3,public X-Google-Thread: 106434,488b53d56236ec72 X-Google-Attributes: gid106434,public X-Google-Thread: 10f67c,488b53d56236ec72 X-Google-Attributes: gid10f67c,public X-Google-Thread: 1014db,488b53d56236ec72 X-Google-Attributes: gid1014db,public X-Google-Thread: 114592,488b53d56236ec72 X-Google-Attributes: gid114592,public X-Google-Thread: 100850,488b53d56236ec72 X-Google-Attributes: gid100850,public X-Google-Thread: f4614,488b53d56236ec72 X-Google-Attributes: gidf4614,public From: Martin Ambuhl <mambuhl@earthlink.net> Subject: Re: please help me with this problem Date: 1999/07/16 Message-ID: <clcm-19990716-0001@plethora.net> X-Deja-AN: 501880558 Sender: mambuhl@earthlink.net@dialup-209.246.64.150.newyork2.level3.net Content-Transfer-encoding: 7bit Approved: clc@plethora.net References: <clcm-19990714-0004@plethora.net> <clcm-19990715-0012@plethora.net> X-Accept-language: en,fr,de,zh,en-GB,de-CH,fr-CH,zh-CN,cs,el,ja,ru Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@plethora.net X-Eln-date: 15 Jul 1999 20:52:26 GMT X-Trace: ptah.visi.com 932160063 205.166.146.1 (Fri, 16 Jul 1999 16:21:03 CDT) Organization: Nocturnal Aviation Mime-Version: 1.0 NNTP-Posting-Date: Fri, 16 Jul 1999 16:21:03 CDT Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c,comp.lang.c.moderated,comp.lang.objective-c,fj.comp.lang.c,fj.lang.c,it.comp.lang.c,pl.comp.lang.c,relcom.comp.lang.c-c++ Originator: clcm@plethora.net (Comp Lang C'Moderated)