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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,90f687f65a66617e,start X-Google-Attributes: gid103376,public From: root Subject: Simple ADA/C Question Date: 1997/02/25 Message-ID: #1/1 X-Deja-AN: 221342275 Organization: NASA/MSFC Content-Type: TEXT/PLAIN; charset=US-ASCII Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1997-02-25T00:00:00+00:00 List-Id: Hello, I am very new to ADA ( 3-4 days experience ) and I have a question that probably has a simple answer. As part of my learning experience, I wrote a simple piece of code that requests the user to enter an integer and then the integer is displayed. My ADA code calls a C function, which requests and then returns the integer. The primary ADA task consists of a loop so the I can go get as many integers as I want as long as I input 'y' when prompted ( the default is no ). This works fine as long as I enter an integer. If I enter a real, the program exits as if I had hit the default. What am I forgetting to check to prevent a real, or any unexpected value, from having this effect? TIA. AE