I am trying to run "line program" in graphics using C++ in Code Blocks. I had already done setting up the environment in code blocks for graphics. Still I am getting the problem in this program. The program shows no error , but when I run it , it doesn't show any line in output . Output my program is showing. Here is my code:
#include <graphics.h>
#include <stdio.h>
#include <conio.h>
int main(void)
{
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"c:\\MinGW\\include\");
setcolor(4);
line(30,100,210,100);
line(30,101,210,101);
getch();
}