I wanted to mask a given string into '*' and use it in my project.please help....
Here is the program that I worked on till now...
[code]
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<fstream.h>
#include<ctype.h>
#include<dos.h>
#include<graphics.h>
void main()
{
char i,chr='y';
char pass[] = "password";
char Username[20];
char password[20];
int a=0,gr=0;
clrscr();
while(chr=='y')
{
cout<<" LOGIN DETAILS";
printf("\n\nUsername: ");
gets(Username);
printf("Password: ");
{cout<<"\n\nACCESS GRANTED";
gr=1;
chr='n';
delay(350);
}
else
{cout<<"\nACCESS DENIED";
cout<<"\n\nDo you want to try again [y/n]: ";
cin>>chr;
clrscr();
}
}
[icode]
Those who are helping me please note that if you are editing the program, keep the complete program as an answer...as I am just a beginner student wont be knowing much....also note that please don't make it too complicated my teacher will scold me...[only 12 standard content]
Thank You in Advance
Christy
The Article is very good. I went through it and I came across a few stuff which I don't know...although some of the content I knew but I don't know which to extract from the article and where to add it in mine./..plz help.....
I most sincerely appreciate for your kind help!!!
My program was fine...but only 'ENTER KEY' works.....I need codes for backspace delete key and other keys....In short it should be a perfect program....