Page

Downloading LOGIN SCREEN and Progress Bar C/C++

//User Name = "sourcecode"
//Password = "12345"
// Name: LOGIN SCREE + Progress BAR.
// Description:LOGIN AND PROGRESS BAR.


#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
float i;
char user[10]="sourcecode";
char password[10]="12345";
char password1[10];
char username[10];
textcolor(LIGHTRED);
textbackground(LIGHTBLUE);
clrscr();
gotoxy(5,10);
printf(" Enter username:");
gets(username);
gotoxy(5,12);
printf(" Enter password:");
gets(password1);
if(strcmp(user,username)==0 && strcmp(password,password1)==0)
{
gotoxy(5,15);
printf(" Access guranted Press Enter to continue....");
getch();
clrscr();
gotoxy(5,5);
printf("\n\t\t        Process the System files......");

for(i=1;i<=80;i++)
{
delay(100);
gotoxy(5,23);
printf(" Completed... %f %",i*1.25);
gotoxy(i,9);
textbackground(WHITE);
textcolor(WHITE);
cprintf("\n\n ",65);
}
printf("\n Progress is finished Press Enter............ ");

}
else
{
gotoxy(5,15);
printf(" Invalid user name or Password.");
}
getch();
}

No comments:

Post a Comment