FEU - East Asia College ACM Student Chapter


Join the forum, it's quick and easy

FEU - East Asia College ACM Student Chapter
FEU - East Asia College ACM Student Chapter
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» “Cochin builders: Symbol of Innovative Architecture”
getch and getchar EmptyThu Jul 18, 2013 8:11 pm by shevsoe

» SPICE (Cobol IDE)
getch and getchar EmptyMon May 06, 2013 5:36 pm by 200730059

» YMCA and Global Services
getch and getchar EmptyThu Sep 01, 2011 2:35 pm by Rene Churchill

» useDelimeter
getch and getchar EmptyThu Jun 23, 2011 11:02 am by ern_andrew

» The City of Cochin
getch and getchar EmptyThu Jun 16, 2011 7:31 pm by GhosnBachelder

» LIFE and LOVE GURU
getch and getchar EmptySat Oct 09, 2010 1:42 am by kggc09

» Interested to be an Adhoc?
getch and getchar EmptyFri Oct 08, 2010 2:47 pm by rmsalazar

» Meeting! Officers + Members (Open Meeting)
getch and getchar EmptyFri Oct 08, 2010 2:45 pm by rmsalazar

» Indescribable - Louis Giglio
getch and getchar EmptyThu Oct 07, 2010 12:03 am by rmsalazar

May 2024
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728293031  

Calendar Calendar


getch and getchar

5 posters

Go down

getch and getchar Empty getch and getchar

Post by precious.pagaduan Sat Jul 10, 2010 12:16 am

difference po ng getch at getchar ? Smile

precious.pagaduan
Level 0

Posts : 1
Reputation : 0
Join date : 2010-07-09
Age : 30

Back to top Go down

getch and getchar Empty Re: getch and getchar

Post by haze07 Sat Jul 10, 2010 12:28 am

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 Very Happy

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

Back to top Go down

getch and getchar Empty Re: getch and getchar

Post by daryl_again Sun Jul 18, 2010 9:19 pm

precious.pagaduan wrote: difference po ng getch at getchar ? Smile

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. Very Happy bounce


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. Smile

try mo din magbasabasa ng books Smile and practice lng ng practice magprogram.
study cheers

nice question precious! Smile
daryl_again
daryl_again
Level 0

Posts : 16
Reputation : 0
Join date : 2010-07-17
Age : 31

Back to top Go down

getch and getchar Empty Re: getch and getchar

Post by bhEsquivel Sun Jul 18, 2010 9:57 pm

Nice Daryl
bhEsquivel
bhEsquivel
Level 0

Posts : 20
Reputation : 0
Join date : 2010-07-09
Age : 33
Location : Cavite

Back to top Go down

getch and getchar Empty Re: getch and getchar

Post by rmsalazar Mon Jul 19, 2010 8:07 pm

halatang gnoogle..XD WAHAHAHAH
rmsalazar
rmsalazar
Level 1

Posts : 129
Reputation : 2
Join date : 2010-07-06
Age : 32

Back to top Go down

getch and getchar Empty Re: getch and getchar

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum