im trying to make it so when the user inputs a number, it gets input then dissapears so no one else can read it, kind of like a password, im kind of new to c++ so keep the answer as simple ass possible, if you have a function that can do thsi please post! all input is greatly appreciated, thanks.
5 1151
If this is for a standard console app, look into curses or a similar library for cursor control. Or just use system("cls") or system("clear"), depending on your OS (Windows/*nix, respectively). If this is a GUI application, you should be able to clear a textbox/formfield by setting its text to "".
Thanks man!! It worked!, I used the system("cls"), but then, untill you press enter, it is still there, so is there a way to make it so when u type it displays as * or just doesnt display at all? please reply and thanks for your help so far.
Look into a Windows-compatible curses (or similar cursor control) library (I don't know of one offhand), or there may be a Microsoft function you can use somewhere in the Windows API. I can't be of much help here, I'm afraid, but do some Googling and you never know what will pop up.
Research on how to turn the console echo off.
I'm not quite sure if you can use getch() function
But if you can, this will return a single character without displaying it.
The function finishes every time you press a key, so you print * just after the function.
I hope this is helpful.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Dave |
last post by:
After following Microsofts admonition to reformat my system before doing a
final compilation of my app I got many warnings/errors upon compiling an rtf
file created in word. I used the Help...
|
by: wukexin |
last post by:
Help me, good men. I find mang books that introduce bit "mang header
files",they talk too bit,in fact it is my too fool, I don't learn it, I have
do a test program, but I have no correct doing...
|
by: Colin J. Williams |
last post by:
Python advertises some basic service:
C:\Python24>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
With...
|
by: Corepaul |
last post by:
Missing Help Files
When I enter "recordset" as the keyword and search the Visual Basic Help index,
I get many topics of interest in the resulting list. But there isn't any
information available...
|
by: Bob |
last post by:
I attached the properties list of the column in a datagridview. The
datagridview is bound. Note that the cell visible property is set to false
and while looking at the datagridview in the VS IDE...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |