From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Need help for a Calculator program
Date: 01 Feb 2002 13:17:30 -0500
Date: 2002-02-01T18:21:36+00:00 [thread overview]
Message-ID: <uofj9vzgl.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: ab6237e2.0202010406.48b59067@posting.google.com
genx54321@hotmail.com (Jim) writes:
> 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 ?
This sounds like homework; please say "it's not homework" if it isn't
:).
I'm not clear what you are asking for. I guess "full stop" means "hit
the return key" or "generate end of line" or something. Why do you
want to get rid of that?
--
-- Stephe
next prev parent reply other threads:[~2002-02-01 18:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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