comp.lang.ada
 help / color / mirror / Atom feed
From: Marin David Condic <mcondic.nospam@acm.org>
To: Marc <marc.lecoq@net-clic.net>
Subject: Re: Ms-dos windows
Date: 2000/11/12
Date: 2000-11-12T15:43:38+00:00	[thread overview]
Message-ID: <3A0EBA81.240F986F@acm.org> (raw)
In-Reply-To: 8uk560$c5c$1@reader1.fr.uu.net

It is a little unclear about what you are trying to do. Are you using GNAT and
AdaGide? You might try to make a small "Hello World" application as an
illustration of what you want to do and see if you can get the I/O to work from
there. Something like:

with Ada.Text_IO ;
with Ada.Integer_Text_IO ;
procedure Hello_World is
    Int    : Integer ;
begin
    Ada.Text_IO.Put_Line ("Hello World!") ;
    Ada.Text_IO.Put ("Enter An Integer: ") ;
    Ada.Integer_Text_IO.Get (Int) ;
    Ada.Text_IO.Put_Line ("Your Number + 10 Is: " & Integer'Image (Int + 10)) ;
end Hello_World ;

Try that and see if it works.

MDC


Marc wrote:

> Hello,
> I'm new in ada,
> when I execute my program from ada environment,(Execute option) a dos window
> appears but nothing append inside. Why???
> I use Put and Get statements.
> Thank for your answer
> (Ada 3.12 for windows)

--
======================================================================
Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/
Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m
Visit my web site at:  http://www.mcondic.com/

    "Giving money and power to Government is like giving whiskey
    and car keys to teenage boys."

        --   P. J. O'Rourke
======================================================================






  reply	other threads:[~2000-11-12  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-11  0:00 Ms-dos windows Marc
2000-11-12  0:00 ` Marin David Condic [this message]
2000-11-12  0:00   ` Marc
2000-11-13  0:00     ` Marin David Condic
2000-11-13  0:45     ` tmoran
2000-11-13  0:00       ` Marin David Condic
2000-11-13  0:00         ` tmoran
replies disabled

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