comp.lang.ada
 help / color / mirror / Atom feed
* Need help for a Calculator program
@ 2002-02-01 12:06 Jim
  2002-02-01 12:41 ` John English
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Jim @ 2002-02-01 12:06 UTC (permalink / 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 ?



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-02-12 15:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-01 12:06 Need help for a Calculator program Jim
2002-02-01 12:41 ` 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

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