Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

making a box

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
need help

please help

thanx

The program must draw a box on the screen according to the user’s requirements. The box will be hollow and its sides, top and bottom are drawn using the same character. The user will be able to choose the position and size of the box, and the character used to draw the box.

The program must have a menu with the following options:

Char to input the character used to draw the box border

Co-ord to enter the box coordinates (left, top, right and bottom)

Draw to draw the box

Q to quit the program

When the program draws the box, it will not erase the interior of the box. When the user changes the position and size of the box, the program will not erase the previous box, except where the new box’s border or the menu overwrites the previous box’s border.

The program must be easy to use in all respects. The program logic should be straightforward and not unnecessarily complex. The source code should be tidy and have consistent indentation, a heading showing the programs title, purpose, date and author, and a brief comment on each loop and decision

thanx
 
Hi,

I got ur problem. I think there is no much difference in the logic to draw the box. But the problem is not to erase the previous box. For that you have to select hollow brush. By default there is white brush selected. You have to change it ot hollow brush. Rest is simple.

hsk007 :cool:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top