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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,975b46ec27c036e5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-03 07:42:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Jim" Newsgroups: comp.lang.ada Subject: Re: Need help for a Calculator program Date: Sun, 3 Feb 2002 15:41:38 +0000 (UTC) Organization: BT Openworld Message-ID: References: NNTP-Posting-Host: 62.7.121.3 X-Trace: paris.btinternet.com 1012750898 28981 62.7.121.3 (3 Feb 2002 15:41:38 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sun, 3 Feb 2002 15:41:38 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:19563 Date: 2002-02-03T15:41:38+00:00 List-Id: ive now used "end_of_line" instead of "if operator = '.' then put(result)". but what happens now, you can put any character after the expression eg 1 + 2 + 3f, 1 + 2 + 3z press enter and get the answer. if you dont put anything after the last operand it doesnt do anything. This is because the loop has the check the next character after the last operand right ? how do i make loop exit without it actually reading the next character ?