Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this assignment, you will work with arrays of structs in C. 1.(5 points) Declare a struct with tag window, that contains the following members.
For this assignment, you will work with arrays of structs in C. 1.(5 points) Declare a struct with tag window, that contains the following members. o Unsigned integers named xlow, ylow, xhigh, yhigh; o A character named wch. The window is a rectangle with upper left corner at coordinates (xlow, ylow) and bottom right corner at coordinates (xhigh, yhigh) . The window is filled with the character wch. 2.(15 points) Write a function with prototype void fill_line (struct window W[], unsigned Wsize, unsigned x1, unsigned x2, unsigned y, char line[]); that does the following. Given an array of windows w of size Wsize , fill the character array line with the window characters that should be displayed for the given y coordinate, but cropped to the x values between x1 and x2 ; i.e., all x values such that x1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started