Hello I'm new at using c++ and new at this forum as well, I'm wondering if you could help me with my atm project. Could you please show how to make my program accept pin number but display ***** or any other character, instead of showing numbers when inputting them? thank you very much in advance! More power!
#include <iostream.h>
#include <conio.h>
#include <stdlib.h>
main()
{
int newpin1, newpin2;
clrscr();
cout <<"Change PIN";
cout <endl;
clrscr();
cout <<"Please Enter Your New PIN"<<endl;
cin >>newpin1;
clrscr();
cout <<"Please Re-enter Your New PIN"<<endl;
cin >> newpin2;
clrscr();
if (newpin1 == newpin2)
{
cout <<"Succesful! Your PIN has been changed"<<endl;
}
else
{
cout<<"Incorrect PIN"<<endl;
}
getch ();
return 0;
}