From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4de2579a53c3574f X-Google-Attributes: gid103376,public From: Peter Milliken Subject: Re: Help with my program Date: 1997/02/20 Message-ID: <330BA896.2C9@zip.com.au>#1/1 X-Deja-AN: 219994967 References: <3308B6FD.507C@fdusvrt1.fdu.edu> Content-Type: text/plain; charset=us-ascii Organization: Here Today, Gone Tomorrow Mime-Version: 1.0 Reply-To: peterm@zip.com.au Newsgroups: comp.lang.ada X-Mailer: Mozilla 3.0 (Win95; I) Date: 1997-02-20T00:00:00+00:00 List-Id: Robert Dewar wrote: > > Doriapp says > > << But my problem is it says b is never assigned a value and also i need > to change the integer to a user defined one how do i achieve it?>> > > The reason it says that b is never assigned a value is that b is never > assigned a value, as is clear from your code! > > I do not understand your confusion Gee... that was REAL helpful, or perhaps you didn't read the message title? Is this what Mike was talking about several weeks ago when he mentioned how helpful the DJGPP community was and that perhaps we ought to foster the same kind of comraderie (very much paraphrased here, sorry Mike, I believe this was the gist of what you were talking about). I have never seen anyone in the djgpp list respond like this! Dear Doriapp, I assume from a quick look at you code you are trying to implement a RPN Calculator. In which case, something like the '+' case should be: when '+' => -- case assumes that the user has entered two numbers :-) pop(a); pop(b); push(b+a); This will assign the value to 'b' and achieve what I (believe) you want from the exercise. Good Luck Peter -- Peter Milliken _--_|\ peterm@zip.com.au (personal) / \ peterm@cae.com.au (business) \_.--._/ v