Article View: comp.lang.pascal.borland
Article #583Re: Calculator
From: Timomai
Date: Fri, 19 Sep 1997 00:00
Date: Fri, 19 Sep 1997 00:00
30 lines
1829 bytes
1829 bytes
Dr Zeed wrote:
>
> Hello!
>
> I just started with Pascal.. now I got a little problem! I want to do a
> Calculator.. I want the calculator to look like this:
>
> 3+4+5+9 [enter]
> Answer: 21
>
> I want to be able to use +,-,*,/ and write many numbers on the same row. I
> hope someone can help me, maybe you know a good idea...
>
> Dr_Zeed@hotmail.com
Hi,
That is a very hard problem in Pascal to solve. You have 2 solutions :
1 you take a such function from a book or from a website
2 you write it
If you decide to write it, you should be a good programmer in
Pascal. (you have to know pointers...) So, if you want to have your
function now, it is better to download it. But it can be a good exercise
to write it. If you want, i can explain you better how to write such
function. For instance, i wrote, 2 years ago, a such function which
recognizes more thatn + \ * and -, and which can derivate the function
given by the string..
Timomai
Technical Details
Message-ID:
<3422EC5A.5B3E@club-internet.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bcc51b$3c593780$a65ac6c2@anders>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10261c,173f658d4bc382ca X-Google-Attributes: gid10261c,public X-Google-Thread: 111659,173f658d4bc382ca X-Google-Attributes: gid111659,public X-Google-Thread: fea06,173f658d4bc382ca X-Google-Attributes: gidfea06,public X-Google-Thread: 102601,173f658d4bc382ca X-Google-Attributes: gid102601,public X-Google-Thread: 10263e,173f658d4bc382ca X-Google-Attributes: gid10263e,public From: Timomai <timomai@club-internet.fr> Subject: Re: Calculator Date: 1997/09/19 Message-ID: <3422EC5A.5B3E@club-internet.fr> X-Deja-AN: 273922085 References: <01bcc51b$3c593780$a65ac6c2@anders> Reply-To: timomai@club-internet.fr Organization: Grolier Interactive Europe Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.misc,ctdl.lang.pascal,maus.lang.tpascal,sk.comp.pascal