getch and getchar
5 posters
Page 1 of 1
getch and getchar
difference po ng getch at getchar ?
precious.pagaduan- Level 0
- Posts : 1
Reputation : 0
Join date : 2010-07-09
Age : 30
Re: getch and getchar
getch/getche are non-standard function, meaning it will not work on all compilers. Try it yourself in DevC and you will get an error but it will work on Borland turboc, furthermore it does not echo the key pressed meaning it will not get displayed in the console.
unlike getch/getche getchar is a standard function, so it will work in any of the compilers, but it will have an echo or displays the key pressed and requires the user to press enter i think.
NOTE: turboc and devC both of these IDE uses different compilers, so don't get confused
and also all of these three functions returns the key pressed
unlike getch/getche getchar is a standard function, so it will work in any of the compilers, but it will have an echo or displays the key pressed and requires the user to press enter i think.
NOTE: turboc and devC both of these IDE uses different compilers, so don't get confused
and also all of these three functions returns the key pressed
haze07- Level 0
- Posts : 18
Reputation : 1
Join date : 2010-07-08
Age : 32
Re: getch and getchar
precious.pagaduan wrote: difference po ng getch at getchar ?
compiler extension ang getch() meaning gagana lng xa pag supported ng compiler mo ung getch().. ginagamit getch() pra ndi mag close ung console window mo pag nrrun mo ung program. to get a clearer picture of this try mo toh (observe: try mo mag run ng compile with getch() then try mo nmn without.) malalaman mo ung difference.
yung getchar() nmn function xa na ginagamit pra mka read ng data from the keyboard.
i hope nasagot ko questions mo hehe.. if u want further explanation. pa sched ka ng mentoring kay alee.
try mo din magbasabasa ng books and practice lng ng practice magprogram.
nice question precious!
daryl_again- Level 0
- Posts : 16
Reputation : 0
Join date : 2010-07-17
Age : 31
Re: getch and getchar
Nice Daryl
bhEsquivel- Level 0
- Posts : 20
Reputation : 0
Join date : 2010-07-09
Age : 33
Location : Cavite
Re: getch and getchar
halatang gnoogle..XD WAHAHAHAH
rmsalazar- Level 1
- Posts : 129
Reputation : 2
Join date : 2010-07-06
Age : 32
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Thu Jul 18, 2013 8:11 pm by shevsoe
» SPICE (Cobol IDE)
Mon May 06, 2013 5:36 pm by 200730059
» YMCA and Global Services
Thu Sep 01, 2011 2:35 pm by Rene Churchill
» useDelimeter
Thu Jun 23, 2011 11:02 am by ern_andrew
» The City of Cochin
Thu Jun 16, 2011 7:31 pm by GhosnBachelder
» LIFE and LOVE GURU
Sat Oct 09, 2010 1:42 am by kggc09
» Interested to be an Adhoc?
Fri Oct 08, 2010 2:47 pm by rmsalazar
» Meeting! Officers + Members (Open Meeting)
Fri Oct 08, 2010 2:45 pm by rmsalazar
» Indescribable - Louis Giglio
Thu Oct 07, 2010 12:03 am by rmsalazar