2 Replies - 7567 Views - Last Post: 22 October 2008 - 06:51 AM Rate Topic: -----

#1 amlbor.2008  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 22-October 08

print star when we enter password

Posted 22 October 2008 - 06:34 AM

How I can print a star like * when we enter password

This post has been edited by amlbor.2008: 22 October 2008 - 06:36 AM

Is This A Good Question/Topic? 1

Replies To: print star when we enter password

#2 AmitTheInfinity  Icon User is offline

  • C Surfing ∞
  • member icon

Reputation: 117
  • View blog
  • Posts: 1,559
  • Joined: 25-January 07

Re: print star when we enter password

Posted 22 October 2008 - 06:47 AM

Have you tried something like this? get password character by character and end the loop when user press enter.


        ch = getch();
        printf("*");




I hope this will help you. :)
Was This Post Helpful? 0
  • +
  • -

#3 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: print star when we enter password

Posted 22 October 2008 - 06:51 AM

http://www.dreaminco...wtopic64009.htm

http://www.dreaminco...snippet2084.htm
Was This Post Helpful? 1

Page 1 of 1