954,136 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Helping for initialization

for a simple program...

#include
using namespace std;
int main()
{int x;
cout << "enter password\n";
cin >> x;
return 0;
}

for the pink colour part..
if i want my password to be in integer and alphabets, so what command line should i put?

and when i enter a password... i want it to reveal the code in this form "*****". How should i do that?

koh
Junior Poster in Training
73 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0
 

>and when i enter a password... i want it to reveal the code in this form "*****". How should i do that?

A C example (second snippet).

Dave Sinkula
long time no c
Team Colleague
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
 

have you tried declairing your "x" as a char instead of int?

Pikachu
Newbie Poster
19 posts since Aug 2004
Reputation Points: 11
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You