We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,289 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

getch() and getche()

different between getch() and getche()?

5
Contributors
5
Replies
21 Hours
Discussion Span
9 Months Ago
Last Updated
6
Views
nida.lodhi.7
Newbie Poster
1 post since Aug 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

getch() blindly gets a character.
getche() echos the character.

Both of which you would have been able to answer in seconds by trying them.

But, avoid using them because they are not standard and are only supported in a couple compilers.

WaltP
Posting Sage w/ dash of thyme
Team Colleague
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 37

What ever happened to reading the manual?

deceptikon
Challenge Accepted
Administrator
3,454 posts since Jan 2012
Reputation Points: 822
Solved Threads: 473
Skill Endorsements: 57

Passe. When you can get an anwser in hours by posting a question and spending no effort, why spend the energy to open the manual and get the answer in seconds?

WaltP
Posting Sage w/ dash of thyme
Team Colleague
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 37

hi

My points of view both are same.

abhishekabhi
Light Poster
28 posts since Jul 2012
Reputation Points: -4
Solved Threads: 1
Skill Endorsements: 0

if you use getch() in any program then you can enter any character but that character is never echoed on output screen but in case of getche ...the char is echoed...u can find the difference by implementing it yourself

manishanibhwani
Light Poster
29 posts since Jan 2010
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0671 seconds using 2.68MB