Re: Help for designing outlines in c language
- From: Simon Biber <news@xxxxxxxxx>
- Date: Mon, 17 Jul 2006 21:55:18 GMT
Walter Roberson wrote:
In article <44bbf805$1_3@xxxxxxxxxxxxxxxxxxxxxxxxx>,
Simon Biber <news@xxxxxxxxx> wrote:
Manmeet Mittal wrote:
I want to create menus and borders in c. How can make it. What r its codings.
puts(
"|------------------------|\n"
"| MAIN MENU |\n"
"|------------------------|\n"
"| 1. Add |\n"
"| 2. Subtract |\n"
"| 3. Multiply |\n"
"| 4. Quit |\n"
"|------------------------|\n");
That assumes a fixed width font, which is not a portable assumption.
It also assumes that the display is at least 26 wide by 8 high,
which is also not portable.
With a proportional font it will still work, but just look weird.
What hosted C environment has a display less than 26x8 characters?
My program will also work on teletype printer terminals -- it does not require a display.
--
Simon.
.
- Follow-Ups:
- Re: Help for designing outlines in c language
- From: Walter Roberson
- Re: Help for designing outlines in c language
- References:
- Help for designing outlines in c language
- From: Manmeet Mittal
- Re: Help for designing outlines in c language
- From: Simon Biber
- Re: Help for designing outlines in c language
- From: Walter Roberson
- Help for designing outlines in c language
- Prev by Date: Re: Forward Declarations
- Next by Date: Re: C is too old? opinions?
- Previous by thread: Re: Help for designing outlines in c language
- Next by thread: Re: Help for designing outlines in c language
- Index(es):
Relevant Pages
|