FEU - East Asia College ACM Student Chapter
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» “Cochin builders: Symbol of Innovative Architecture”
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

» Dropbox - HIGHLY RECOMMENDED AND EXTREMELY USEFUL
Mon Nov 08, 2010 1:30 am by arscariosus

» Anyone has watched The Social Network?
Sun Oct 24, 2010 4:09 pm by arscariosus

» 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

April 2018
MonTueWedThuFriSatSun
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Calendar Calendar


getch and getchar

Go down

getch and getchar

Post by precious.pagaduan on 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 : 23

View user profile

Back to top Go down

Re: getch and getchar

Post by haze07 on 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 : 26

View user profile

Back to top Go down

Re: getch and getchar

Post by daryl_again on 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 G. Canet
Assistant Secretary of FEU-EAC ACM
200810153
daryl_again@yahoo.com.ph
avatar
daryl_again
Level 0

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

View user profile

Back to top Go down

Re: getch and getchar

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

Nice Daryl

_________________
Name: Bernard Hommer A. Esquivel
Student No: 2008-10250
Program: BSCS
avatar
bhEsquivel
Level 0

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

View user profile

Back to top Go down

Re: getch and getchar

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

halatang gnoogle..XD WAHAHAHAH

_________________
Romiazon M. Salazar
VP-Internal of FEU-EAC ACM
200810023

romiazonsalazar@gmail.com
avatar
rmsalazar
Level 1

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

View user profile

Back to top Go down

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