473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

invisble help

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.
Aug 21 '08 #1
5 1151
Laharl
849 Expert 512MB
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 "".
Aug 21 '08 #2
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.
Aug 21 '08 #3
Laharl
849 Expert 512MB
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.
Aug 22 '08 #4
weaknessforcats
9,208 Expert Mod 8TB
Research on how to turn the console echo off.
Aug 22 '08 #5
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.
Aug 22 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

21
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...
6
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...
3
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...
7
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.