> Hi all this is Manmeet Mittal,
>I want to create menus and borders in c. How can make it. What r its codings.
Jul 17 '06
11 1420
On Mon, 17 Jul 2006 20:51:40 UTC, Skarmander <in*****@dontma ilme.com>
wrote:
Walter Roberson wrote:
In article <44**********@n ews.peopletelec om.com.au>,
Simon Biber <ne**@ralmin.cc 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.
I've never seen a TTY that had not a fixed font.
It also assumes that the display is at least 26 wide by 8 high,
which is also not portable.
No, it works on classic TTY.
Proven on DEC Eclipse about 20 years ago. That was the method the game
startec had woked.
Heck, it assumes *a* display, which is not portable.
No, except you'll say that a TTY is a screen.
There's no way to do
"menus and borders" in the way the OP presumably intends in portable C, so
it hardly matters.
Not true as old classic gaemes written for TTYs and green color
monitors have already proven.
--
Tschau/Bye
Herbert
Visit http://www.ecomstation.de the home of german eComStation
eComStation 1.2 Deutsch ist da!
On Mon, 17 Jul 2006 21:55:18 UTC, Simon Biber <ne**@ralmin.cc wrote:
Walter Roberson wrote:
In article <44**********@n ews.peopletelec om.com.au>,
Simon Biber <ne**@ralmin.cc 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?
What lets you think that each hosted environment has a need for such
displays? I've seen man whereas the display is only one single line
LCD display, having a console with keyboard and TTY like printer.
My program will also work on teletype printer terminals -- it does not
require a display.
--
Tschau/Bye
Herbert
Visit http://www.ecomstation.de the home of german eComStation
eComStation 1.2 Deutsch ist da! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Aditi |
last post by:
hi all...i m a software engg. student completed my 2nd yr...i have been
asked to make a project during these summer vacations...and hereby i
would like to invite some ideas bout the design and implementation of
an APPLICATION MONITORING SYSTEM....i have to start from scrach so
please tell me how to go bout it rite from the beggining this is the
first time i m making a project of this complexity...
i have to make a system used by the IT...
|
by: Jackson Yap |
last post by:
can someone kind enough to help me look at the attached html and js
file? Why is it that the javascript menu could not work at
www.apchosting.net but could work at
http://home.pacific.net.sg/~jacksony ? (the drop down bar could not work
at www.apchosting.net but can drop at home.pacific.net.sg. I suspect it
is a server problem but was told it is not possible, therefore assuming
it is a client script problem? the script works last time...
|
by: sachin |
last post by:
Hello Everybody
I need some help regarding Natural Language Processing.
I am designing a MT system from a SOV language to a SOV language.
I need a parser which can find the root word corresponding to each
word and can generate some info. Gender, Number, Person with the help
of implementing Grammatical rules.
Since It is between SOV lnguages so I have no need a LWG.
I am new t this field so not getting any idea how to kick off the
|
by: C++ Hell |
last post by:
Hey everyone just designing a quiz for school and managed to write the
code for the questions and answers thou i have to add scores and at the
end an overall score does anyone have any idea what to do or what i am
talkin about
|
by: mystilleef |
last post by:
Hello,
I need to design a plug-in system for a project. The goal is
to allow third party developers interact with an application
via plug-ins in a clean and robust manner. At this point I
am overwhelmed by my inexperience with designing plug-in
systems.
Are there any good tutorials on how to design good plug-in
systems with Python, or any language? What are the best
| |
by: pransri2006 |
last post by:
Hi guys! I think all of u know about the designing of
compilers. Can any body tell me about the designing of the compilers.
And also tell me the difference between the compilers and Interpreter
which weresically used by the computers.
I want to know about the basic compiler software.
|
by: ifti_crazy |
last post by:
I am VB6 programmer and wants to start new programming language but i
am unable to deciced.
i have read about Python, Ruby and Visual C++. but i want to go
through with GUI based programming language like VB.net
so will you please guide me which GUI based language has worth with
complete OOPS Characteristics
will wait for the answer
|
by: swiftset |
last post by:
I'm try to convert a glyph into a format I can easily numerically
manipulate. So far I've figured out how to use ttfquery to get a list
that represents the outline of a contour in a glyph:
from ttfquery import describe, glyphquery, glyph
f = describe.openFont("/usr/share/fonts/truetype/freefont/
FreeSans.ttf")
n = glyphquery.glyphName(f, 'D')
g = glyph.Glyph(n)
c = g.calculateContours(f)
|
by: Alf P. Steinbach |
last post by:
I once suggested in that SomeOne Else(TM) should propose
a string value class that accepted literals and char pointers and so on,
with possible custom deleter, and in case of literal strings just
carrying the original pointer.
In other words, for the simplest usage code:
* no overhead (just carrying a pointer or two), and
* no possibility of exceptions (for that case).
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |