You are on page 1of 3

#include<iostream.

h>
#include<stdio.h>
#include<dos.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<fstream.h>
#include<graphics.h>
#include<math.h> //header files
#include <conio.h>
int i=0;
int x=50, y=10, b=600, c=340;
int main(void) //main function
{
int graphdriver=DETECT,graphmode;
initgraph(&graphdriver,&graphmode,"C:\\tc\\bgi");
int dly=110,dly1=40;//110 40
for(int i=0;i<=20;i++)
{setcolor(0);
circle(640-15*i,50+(pow(i,2)),50);
delay(190);
system("cls");
}
for(i=0;i<=20;i++)
{ setcolor(0);
circle(340-15*i,450-(pow(i,2)),50);
//setcolor(0);
delay(190);
system("cls");
}
system("cls");
for (i=1;i<=10;i++)
{if(i==7)
continue;
else
{
setcolor(2);
settextstyle( DEFAULT_FONT, HORIZ_DIR, i);
moveto(40,120);
outtext("PROJECT"); //blink
delay(dly);
system("cls");
}
}
for ( i=1;i<7;i++)
{
setcolor(1);
settextstyle( DEFAULT_FONT, HORIZ_DIR, i);
moveto(160,150);
outtext("OF C++");
delay(dly);
system("cls");
}
for ( i=3;i<=9;i++)
{if(i==7)
continue;
else
{
setcolor(0);
settextstyle( TRIPLEX_FONT, HORIZ_DIR, i);
moveto(40,120);
outtext("SUBMITTED");

delay(dly);
system("cls");
}
}
for ( i=1;i<=10;i++)
{if(i==7)
continue;
else
{
setcolor(4);
settextstyle( DEFAULT_FONT, HORIZ_DIR, i);
moveto(230,160);
outtext("BY");
delay(dly);
system("cls");
}
}
for ( i=1;i<=5;i++)
{
setcolor(3);
settextstyle( DEFAULT_FONT, HORIZ_DIR, i);
moveto(10,120);
outtext("ANANT KAMATH");
delay(i*dly);
system("cls");
}
for ( i=1;i<=4;i++)
{
setcolor(6);
setcolor(1);
settextstyle( GOTHIC_FONT, HORIZ_DIR,5);
moveto(100,200);
outtext("FOOTBALL MANAGER");
delay(dly);
getch();
closegraph();
system("cls");
f:
system("cls");
int c1,c2,c3,c4,c5,c6,c1b,c2b,c3b,c4b,c5b,c6b;
int move = 1;
char ch;
do
{
system("cls");
textbackground(BLACK);
textattr(BLUE);
printf("\n\t\t ");
cprintf("*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*");
printf("\n\t\t ");
cprintf("*#* ");
textbackground(CYAN);
textcolor(BLACK|BLINK);
cprintf(" SELECT FROM THE FOLLOWING OPTIONS ");
textbackground(BLACK);
textcolor(BLUE);
cprintf(" *#*");
printf("\n\t\t ");
cprintf("*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*");

cout<<"\n\n\n";
if (ch == 'H')
{
if (move == 1) move = 6;
else if (move > 1) move--;
}
else if (ch == 'P')
{
if (move == 6) move = 1;
else if (move < 6) move++;
}
c1 = c2 = c3 = c4 = c5 = c6 = 15;
c1b = c2b = c3b = c4b = c5b = c6b = 0;
if (move == 1) {c1 = 14; c1b = 9;}
else if (move == 2) {c2 = 14; c2b = 9; }
else if (move == 3) {c3 = 14; c3b = 9; }
else if (move == 4) {c4 = 14; c4b = 9; } // main menu
else if (move == 5) {c5 = 14; c5b = 9; } // displays total options of
else {c6 = 14; c6b = 9; // data base
}
textcolor(c1); textbackground(c1b);
cprintf("\n\r 1 Option1 ");
textcolor(c2); textbackground(c2b);
cprintf("\n\r 2 Option ");
textcolor(c3); textbackground(c3b);
cprintf("\n\r 3 Option ");
textcolor(c4); textbackground(c4b);
cprintf("\n\r 4 Option ");
textcolor(c5); textbackground(c5b);
cprintf("\n\r 5 Option");
textcolor(c6); textbackground(c6b);
cprintf("\n\r 6 Exit The Program ");
cout <<"\n\n OPTION SELECTED : " <<move;
textcolor(15); textbackground(0);
ch = getch();
sound(1000); delay(10);nosound();
}
while (ch != 13);
}

You might also like