Draw A Bar with Graphics.h in Dev C++
bar(100,100,200,200);.......
bar(int lef, int top, int righ, int bottom)
Left Top means that Left Side of bar and Top Of Bar.......
And Right bottom means right side and Bottom Of bar.....
OutPut :
Code :
#include<conio.h>
#include<graphics.h>
using namespace std;
int main()
{
int gd=DETECT,gm;
initgraph(&gd, &gm, "C\\TC\\BGI");
bar(100,100,200,200);
getch();
closegraph;
}
No comments:
Post a Comment