plz help why is not run
u need screen shot then email
CS602-ASSIGNMENT-1-SOLUTION-SPRING-2019
Tariq Malik this solution is right ...
M.Tariq Malik what is difference between .dev and .cpp file. Tell me how to submit this assignment.
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <graphics.h>
#include <math.h>
int main()
{
int gd=DETECT, gm;
initgraph(&gd,&gm,(char*)" ");
setcolor(WHITE);
settextstyle(DEFAULT_FONT, HORIZ_DIR, 2);
outtextxy(10, 20, (char*)"BC123456789");
// Modify your code here
int x1=150;
int y1=100;
int x2=450;
int y2=500;
setcolor(YELLOW);
rectangle(x1,y1,x2,y2);
setfillstyle(SOLID_FILL,MAGENTA);
floodfill(151,101,YELLOW);
line(x1,y1+10,x2,y1+10);
line(x1,y1+20,x2,y1+20);
for (int p=130; p<=280; p=p+10, x2=x2-10)
{
line(x1,p,x2,p);
}
int g=460;
for (int r=160; r<=300; r=r+10, g=g-10)
{
int f=290;
line(r, f, r, g);
}
int k=140;
for(int j=440; j>=290; j=j-10, k=k+10)
{
int i= 310;
line(j,k,j,i);
}
for (int q=470; q>=320; q=q-10, x1=x1+10)
{
int x2=450;
line(x1,q,x2,q);
}
line(150,490,450,490);
line(150,480,450,480);
getch();
closegraph();
}
Please help me during compilation and execution it shows these errors :(
Dwonload Graphics in c++
https://www.mediafire.com/file/rbds52w6a34vf65/Graphics+in+Dev+C%2B...
How to Add Graphics in C++
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post