comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Problem with output using Ada.Text_IO.Put
Date: Sat, 19 Jul 2014 16:58:41 -0700
Date: 2014-07-19T16:58:41-07:00	[thread overview]
Message-ID: <lqf0nh$7oh$1@dont-email.me> (raw)
In-Reply-To: <6d5e2fff-e397-4c75-a3c9-3a7825d00752@googlegroups.com>

On 07/19/2014 02:37 PM, junior learning ADA wrote:
> I am starting to learn ADA and I have installed Adacore gnat 2014.

Good. Is that the American Dental Association or the Americans with Disabilities 
Act that you're learning? Ada is a woman's name (Ada King, Countess of Lovelace, 
who wrote programs for Babbage's Analytical Engine), not an acronym.

> BEGIN -- Coin_Collection
>
>    -- prompt user for number of nickels and pennies
>    Ada.Text_IO.Put (Item => "How many nickels do you have? ");
>    Ada.Integer_Text_IO.Get (Item => Nickels);
>    Ada.Text_IO.Put (Item => "How many pennies do you have? ");
>    Ada.Integer_Text_IO.Get (Item => Pennies);
>    Ada.Text_IO.New_Line;
>
>
> However, when I run the program the text output appears after the questions. See below:
> /Users/francois/Documents/ADA/test/fk3-w95/coin_collection
> 1
> 2
> How many nickels do you have? How many pennies do you have?
> [2014-07-19 22:05:16] process terminated successfully, elapsed time: 16.28s

That's very odd. I can't say that I've seen that behavior before.

> Is the issue coming from using a newer version of ADA?

No, Ada.Text_IO should work the same.

-- 
Jeff Carter
"All citizens will be required to change their underwear
every half hour. Underwear will be worn on the outside,
so we can check."
Bananas
29

  parent reply	other threads:[~2014-07-19 23:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-19 21:37 Problem with output using Ada.Text_IO.Put junior learning ADA
2014-07-19 22:10 ` Jerry
2014-07-19 23:58 ` Jeffrey Carter [this message]
2014-07-20  5:22 ` Niklas Holsti
2014-07-20  6:52   ` junior learning ADA
2014-07-20  7:00     ` junior learning ADA
2014-07-20 14:51       ` Niklas Holsti
2014-07-20  8:53     ` Georg Bauhaus
2014-07-20 10:36     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox