C prpgram code of design google web page

Download C prpgram code of design google web page

Post on 19-Aug-2014

70 views

Category:

Engineering

9 download

Embed Size (px)

DESCRIPTION

This is very easy if you learn the hadder file GRAPHIC.H

TRANSCRIPT

<ul><li> #include #include main() { int gd = DETECT, gm; int point[]={10,40,630,40}; int point1[]={545,35,563,35}; int point2[]={573,15,573,35,595,35,595,15,573,15}; int point31[]={605,15,623,35},point311[]={606,15,622,35}; int point32[]={605,35,623,15},point322[]={606,36,623,15}; int point4[]={95,275,95,295}; </li> <li> initgraph(&amp;gd, &amp;gm, "C:TCBGI"); setbkcolor(CYAN); setcolor(BLUE); rectangle(10,10,630,470); drawpoly(2,point); rectangle(600,12,628,38); rectangle(570,12,598,38); rectangle(540,12,568,38); setcolor(YELLOW); drawpoly(2,point1); setcolor(WHITE); drawpoly(5,point2); setcolor(RED); drawpoly(2,point31); drawpoly(2,point311); drawpoly(2,point32); drawpoly(2,point322); settextstyle(1,HORIZ_DIR,6); setcolor(BLUE); outtextxy(220,200,"G"); setcolor(RED); outtextxy(255,200,"o"); setcolor(RED); outtextxy(290,200,"o"); setcolor(BLUE); </li> <li> outtextxy(325,200,"g"); setcolor(GREEN); outtextxy(360,200,"l"); setcolor(RED); outtextxy(385,200,"e"); setcolor(WHITE); rectangle(90,270,550,300); setcolor(BROWN); drawpoly(2,point4); setcolor(GREEN); rectangle(160,310,315,335); settextstyle(1,HORIZ_DIR,1); setcolor(WHITE); outtextxy(165,305,"Google search"); setcolor(GREEN); rectangle(325,310,500,335); settextstyle(1,HORIZ_DIR,1); setcolor(WHITE); outtextxy(330,310,"I'm feeling lucky"); settextstyle(8,HORIZ_DIR,1); setcolor(WHITE); outtextxy(130,390,"Hindi,Bengali,Marathi,Tamil,Gujarati"); settextstyle(2,HORIZ_DIR,5); setcolor(WHITE); outtextxy(530,58,"+you"); </li> <li> setcolor(GREEN); rectangle(572,58,620,75); settextstyle(2,HORIZ_DIR,4); setcolor(WHITE); outtextxy(575,59,"Sign in"); getch(); closegraph(); return 0; } </li> </ul>