#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int i;
int gd=DETECT,gm;
int x,y;
char un[20],pass[20],pass1[20]="k",fd[200],n[20];
clrscr();
textbackground(YELLOW);
window(1,1,80,25);
clrscr();
textcolor(WHITE+BLINK);
gotoxy(28,2);
cprintf("STUDENT MANAGEMENT SYSTEM");
gotoxy(65,23);
printf("Version 2.0");
gotoxy(65,24);
printf("Made By India");
textbackground(WHITE);
window(10,5,70,20);
clrscr();
textcolor(BLUE);
gotoxy(19,3);
cprintf("%c WELCOME TO LOGIN PAGE %c",16,17);
gotoxy(19,4);
cprintf("-------------------------");
window(20,10,60,15);
textbackground(GREEN);
clrscr();
gotoxy(4,2);
textcolor(WHITE);
cprintf(" %c User Name: ",16);
gets(un);
label:
clrscr();
gotoxy(4,2);
printf(" %c User Name: %s",16,un);
gotoxy(4,4);
cprintf(" %c Password: ",16);
scanf("%s",&pass);
if(stricmp(pass,pass1)!=0)
{
gotoxy(14,6);
textcolor(BLUE+BLINK);
cprintf("Wrong Password !!");
getch();
textcolor(WHITE);
goto label;
}
else
{
window(1,1,80,25);
textbackground(55);
clrscr();
textcolor(BLACK);
gotoxy(28,3);
cprintf("Developed By:-RT LAVKUSH");
gotoxy(34,5);
cprintf("Version 2.0");
gotoxy(36,6);
cprintf("INDIAN");
gotoxy(30,12);
cprintf("Loading..........");
textcolor(WHITE);
gotoxy(15,16);
for (i=1;i<=20;i++)
{
cprintf("%c",220);
delay(150);
}
gotoxy(33,15);
textcolor(RED+BLINK);
cprintf(" Server Slow!!");
gotoxy(35,16);
for(i=1;i<=10;i++)
{ textcolor(WHITE);
cprintf("%c",220);
delay(700);
}
gotoxy(45,16);
for(i=1;i<=22;i++)
{
textcolor(WHITE);
cprintf("%c",220);
delay(5);
}
}
initgraph(&gd,&gm,"");
x=getmaxx()/2;
y=getmaxy()/2;
x=x-300;
for(i=0;i<600;i=i+5)
{
cleardevice();
line(x-70+i,y,x+70+i,y);
line(x-69+i,y-3,x+69+i,y-3);
arc(x-105+i,y,0,180,35);
circle(x-105+i,y,25);
arc(x+105+i,y,0,180,35);
circle(x+105+i,y,25);
line(x+140+i,y,x+190+i,y);
line(x+140+i,y-3,x+190+i,y-3);
line(x-190+i,y,x-140+i,y);
line(x-190+i,y-3,x-140+i,y-3);
ellipse(x+105+i,y,0,90,85,50);
ellipse(x-105+i,y,90,180,85,50);
ellipse(x+i,y-50,0,180,105,35);
ellipse(x+i,y-50,349,192,95,30);
line(x-92+i,y-44,x+92+i,y-44);
line(x-92+i,y-41,x+92+i,y-41);
line(x+i,y-44,x+i,y-80);
line(x+i,y-40,x+i,y-5);
delay(5);
}
closegraph();
textbackground(BLUE);
window(1,1,80,25);
clrscr();
gotoxy(32,2);
textcolor(WHITE);
cprintf("HOW IS THIS GUY'S");
gotoxy(29,3);
cprintf("HOPE YOU WILL LIKE THIS");
gotoxy(33,6);
cprintf("%c FEEDBACK %c",16,17);
gotoxy(33,7);
cprintf("------------");
textcolor(YELLOW);
gotoxy(12,8);
cprintf("Enter Your Name:");
cscanf("%s",n);
gotoxy(12,9);
cprintf("Write Something : ");
cscanf("%s",fd);
gotoxy(28,14);
textcolor(WHITE+BLINK);
cprintf("Thanks For Feedback : %s",n);
getch();
getch();
}