Hi today im gonna give you an example of drawing a rectangle on c++.Hope you like it!
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
rectangle(100,100,200,200);
getch();
closegraph();
restorecrtmode();
}
I will be posting another example soon!
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
rectangle(100,100,200,200);
getch();
closegraph();
restorecrtmode();
}
I will be posting another example soon!
No comments:
Post a Comment