Question: 9. Box-Drawing Program MS-DOS applications in the 1980s and early 1990s usually displayed boxes and frames using linedrawing characters in text mode. This programming exercise
9. Box-Drawing Program MS-DOS applications in the 1980s and early 1990s usually displayed boxes and frames using linedrawing characters in text mode. This programming exercise will reproduce those techniques. Write a procedure that draws a single-line frame anywhere on the screen. Use the following extended ASCII codes from the table on the inside back cover of this book: C0h, BFh, B3h, C4h, D9h, and DAh. The procedure’s only input parameter should be a pointer to a FRAME structure:
FRAME STRUCT Left BYTE ? ; left side Top BYTE ? ; top line Right BYTE ? ; right side Bottom BYTE ? ; bottom line FrameColor BYTE ? ; box color FRAME ENDS Write a program that tests your procedure, passing it pointers to various FRAME objects.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
