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,2d0ad8afa0ec077 X-Google-Attributes: gid103376,public From: winn@ist.flinders.edu.au (Tiffany Rose Winn) Subject: Ada95 input output - simple question from novice Date: 1996/03/25 Message-ID: <4j6551$pem@baggins.cc.flinders.edu.au>#1/1 X-Deja-AN: 144122217 distribution: world organization: The Faculty of Science and Engineering reply-to: winn@ist.flinders.edu.au newsgroups: comp.lang.ada Date: 1996-03-25T00:00:00+00:00 List-Id: I want to use a simple put statement to display an integer in a minimum number of spaces: for example, count: integer:= 5; put(count, 2); I thought the above statement would display the integer variable count in a minimum of two spaces, but I keep getting an error saying that my second put parameter is invalid. My guess is that this may be because the Ada compiler is using the put for characters, so I tried adding the line package Ada.Integer_Text_IO is new Ada.Text_IO.Integer_IO(Integer); just after the declaration of my main procedure, and also changed the relevant put statement to Ada.Integer_Text_IO.put(count, 2); This gave me the following error: child unit allowed only at library level I'm stuck as to where to go next (moving the package declaration to just below the "with Text_IO" line gave me errors, too). Can anyone help? Thanks in advance for your time. -- Tiffany winn@cs.flinders.edu.au