![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2006
Location: India
Posts: 25
Rep Power: 0
![]() |
substitute : getch()
What is the substitute for getch() for inputting a character without an echo?
getch() isnt a part of the standard,so what is the alternative? and also what is the substitute of getpass() ? |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
These things are implementation dependent. Since the standard library doesn't have a getch (), your compiler maker for your specific machine and set of hardware may or may not provide one.
You can roll your own, or find examples, but certainly not without considering your hardware and OS (if you have one). You don't mention those. You might want to check out the "How to post a question" thread.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|