0
#include<stdio.h>
#include<graphics.h>
#include<stdlib.h>
#include<conio.h>

void main()
{
     int graphdriver=DETECT,graphmode;
     int color,n,m;
     initgraph(&graphdriver,&graphmode,"C:\\TC\\BGI");
     for(n=0;n<10;n++)
     {
                      putpixel(250+n,350,BLUE);
     }
     for(m=0;m<10;m++)
     {
		      int x=getpixel(250+m,350);
		      printf("%d",x);
     }
      getch();
}

please any one help me solving errors..

Edited by Narue: added code tags

3
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by WaltP
0

thanks for replying.. these are the errors:
Linker error: Undefined symbol _initgraph in module
Linker error: Undefined symbol _closegraph in module
Linker error: Undefined symbol _circle in module

0

sorry>> i didnt get u.. kindly explain it lil bit that where and how to add it, as i m new to graphics field
thanks again..

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.