comp.lang.ada
 help / color / mirror / Atom feed
From: genx54321@hotmail.com (Jim)
Subject: Need help for a Calculator program
Date: 1 Feb 2002 04:06:27 -0800
Date: 2002-02-01T12:06:28+00:00	[thread overview]
Message-ID: <ab6237e2.0202010406.48b59067@posting.google.com> (raw)

ive been reading that online book
http://www.it.bton.ac.uk/staff/je/adacraft/


it tell you how to program a calculator throughout the book, starting
with basic adding and then going on to operator procedence(well i
havent reached this stage yet) but the second part of the calculator
program (chapter  ) you enter an expression eg 1 + 2 + 3 * 4.  but you
have to end the expression with a full stop.  Is there a way where you
dont have to enter a full stop.

the program itself is in the link:
http://www.it.bton.ac.uk/staff/je/adacraft/ch03.htm#3.8


th full stop is used for a condition, if you put a full stop there it
will end a loop for 'getting' operators and then the program will
continue with calculating the expression.

could someone have a look at it for me plz ?



             reply	other threads:[~2002-02-01 12:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-01 12:06 Jim [this message]
2002-02-01 12:41 ` Need help for a Calculator program John English
2002-02-01 14:07 ` Preben Randhol
2002-02-01 18:17 ` Stephen Leake
2002-02-01 18:57   ` Jim
2002-02-01 23:20   ` Jeffrey Carter
2002-02-01 23:46 ` Jim
2002-02-02  4:12   ` Eric Merritt
2002-02-02 16:22     ` Jim
2002-02-02 12:04   ` Preben Randhol
2002-02-03 15:41 ` Jim
2002-02-04 13:54   ` Stephen Leake
2002-02-12 11:55     ` John English
2002-02-12 15:43       ` Pat Rogers
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox