Posts

Showing posts from May, 2012

C GRAPHICS

Hey. I had just started work on a certain BGI graphics mini project, when I discovered a totally new problem. Whenever I try to compile the program below, it gets compiled with no errors and no warnings. However, when I try to run the program, I get linker errors related to each of the functions defined in graphics.h #include<iostream.h> #include<conio.h> #include<graphics.h> #include<math.h> #define XINTERVAL 100 ///////////////////////////////////////////////////////////////////// void showgraph() {     int gd=DETECT,gm,currentx,ctr,ctr2;     clrscr();     initgraph(&gd,&gm,"c:\\tc\\bgi");     cleardevice();     moveto(1,1);     currentx=1;     setcolor(BLUE);     ctr2=0;     ctr=1;     while(getx()<=getmaxx())     {         line(currentx,1,currentx,getmaxy());         ctr++;         currentx=XINTERVAL*ctr2+log10(ctr)*XINTERVAL;         if(ctr==10)         {             ctr=1;             ctr2++;         }

CSS

TO USE DIFFERENT STYLE.CSS FOR DIFFERENT BROWSER < link href="style.css" type="text/css" rel="stylesheet" /> <!--[if IE 6]> < link href="style_ie.css" type="text/css" rel="stylesheet" /> < ![endif]--> NOTE : Use Above code in your HEAD. Here style.css will be applied for all browser by default. But style_ie.css will be applied only to IE.