Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > what is the difference between getch() & getche()

Reply
Thread Tools

what is the difference between getch() & getche()

 
 
srikanth
Guest
Posts: n/a
 
      03-05-2006
help me out with the subject

 
Reply With Quote
 
 
 
 
Walter Roberson
Guest
Posts: n/a
 
      03-05-2006
In article < .com>,
srikanth <> wrote:
>help me out with the subject


I've never heard of getche(). Did you perhaps mean getchar() ?

--
Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us. -- Ecclesiastes
 
Reply With Quote
 
 
 
 
srikanth
Guest
Posts: n/a
 
      03-05-2006
i am right to what i meant sir it is getche ( )and not getchar( )

 
Reply With Quote
 
=?ISO-8859-1?Q?=22Nils_O=2E_Sel=E5sdal=22?=
Guest
Posts: n/a
 
      03-05-2006
srikanth wrote:
> i am right to what i meant sir it is getche ( )and not getchar( )


neither getch or getche are standard functions.
You need to explain where you discovered those function, or probably
ask in an OS dependant newsgroup.
 
Reply With Quote
 
Vladimir S. Oka
Guest
Posts: n/a
 
      03-05-2006
srikanth wrote:

> Nils O. Selåsdal
> neither getch or getche are standard functions
> my reply :getch( ) and getche( ) are pre defined functions in C LANG.
> :they are under the headerfile <conio.h>


My reply: you are a troll. Goodbye...

--
BR, Vladimir

I prefer rogues to imbeciles because they sometimes take a rest.
-- Alexandre Dumas the Younger

 
Reply With Quote
 
srikanth
Guest
Posts: n/a
 
      03-05-2006
Nils O. Selåsdal
neither getch or getche are standard functions
my reply :getch( ) and getche( ) are pre defined functions in C LANG.
:they are under the headerfile <conio.h>

 
Reply With Quote
 
Vladimir S. Oka
Guest
Posts: n/a
 
      03-05-2006
srikanth wrote:

> i am right to what i meant sir it is getche ( )and not getchar( )


1. Quote what a nd who you're replying to.
2. Be polite when asking for help.
3. One is standard C, the other one isn't.
4. Go figure.

--
BR, Vladimir

Don't be overly suspicious where it's not warranted.

 
Reply With Quote
 
Martin Ambuhl
Guest
Posts: n/a
 
      03-05-2006
srikanth wrote:
> help me out with the subject


Repeated for those who don't bother with subject headers, knowing that
they are meaningless and are not the place to put important parts of posts:
> what is the difference between getch() & getche()


From the point of view of C, none. They are undefined identifiers
denoting some function or the other. Neither is part of C. Similarly
named functions (or possibly macros) in C are fgetc(), getc(), and
getchar().


 
Reply With Quote
 
B. P. TBC
Guest
Posts: n/a
 
      03-05-2006
srikanth írta:
> help me out with the subject
>

getch(): reads a char from the keyboard. It doesn't echoes it to the screen.
getche(): reads a char from the keyboard and echoes it to screen.
 
Reply With Quote
 
Ian Collins
Guest
Posts: n/a
 
      03-05-2006
srikanth wrote:
> Nils O. Selåsdal
> neither getch or getche are standard functions
> my reply :getch( ) and getche( ) are pre defined functions in C LANG.
> :they are under the headerfile <conio.h>
>

Which isn't a standard header, you'll have to ask in a platform specific NG.

--
Ian Collins.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 7.17 What's the difference between dynamic and lexical (static) scoping? Between local() and my()? PerlFAQ Server Perl Misc 0 04-15-2011 04:00 AM
FAQ 7.17 What's the difference between dynamic and lexical (static) scoping? Between local() and my()? PerlFAQ Server Perl Misc 0 01-06-2011 05:00 PM
difference between between these "char"s arnuld C++ 33 03-05-2007 03:11 PM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
Exact difference between 'const char *' and 'char *', also diff between 'const' and 'static' Santa C Programming 1 07-17-2003 02:10 PM



Advertisments