Assignment File..

Views: 697

Attachments:

Replies to This Discussion

Coding

#include <stdio.h>
#include <conio.h>
#include <graphics.h>
#include <math.h>
int main()
{
int gd,gm;
detectgraph(&gd,&gm);
initgraph(&gd,&gm,"");
setcolor(GREEN);

settextstyle(DEFAULT_FONT, HORIZ_DIR, 2);
outtextxy(10, 10, "Welcome to Graphics Programming");
outtextxy(10, 30, "My VU-ID is MC123456789");
line(0,60,getmaxx(),60);

int i,cir_x,cir_y;
cir_x=getmaxx()/2;
cir_y=getmaxy()/2;

// Modify your code here

initwindow(1366,768);
setcolor(WHITE);
bar(100,150,200,350);

setfillstyle(SOLID_FILL,GREEN);

rectangle(100,170,600,680);
floodfill(201,302,WHITE);
getch();
}

Correct Idea Sol Attached

Attachments:

screen shot

Add graphics.h library and project parameters linker which are included with the assignment archive.

RSS

Discussion Forum

CS602 Assignment 1 May 10, 2018

Started by ღ*` Touseef `*ღ.
Last reply
by + caмe4ѕтυdιeѕ May 11. 6 Replies

cs602 GDB solution

Started by +" Heaven Scent "+.
Last reply
by Cute S@mra Jul 27, 2017. 1 Reply

CS602 Assignment no 3 solution and discussion

Started by +" Heaven Scent "+.
Last reply
by +" Heaven Scent "+ Jul 10, 2017. 1 Reply

SPONSORED LINKS

© 2018   Created by Muhammad Anwar Tahseen.   Powered by

Badges  |  Report an Issue  |  Terms of Service