comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: A new universe of Ada
Date: Mon, 26 Sep 2022 11:16:27 +0200	[thread overview]
Message-ID: <tgrqlc$1ldh$1@gioia.aioe.org> (raw)
In-Reply-To: 8d3a421a-4aff-4259-8eec-9b4219b270e6n@googlegroups.com

On 2022-09-26 10:04, Rick Duley wrote:
> Okay - you can use GDB within Studio.  Great, but first I have to write a program.
> 
> Please ...
> 
> Assume:  I am an Elementary School kid brought up by his Grandparents who are still struggling to control an abacus.  Assume I know absolutely nothing at all about programming.  Assume that I do not speak Geek!  Assume that there is access to a PC with Gnat Studio installed.
> 
> Now:  Teach me how to write "Hello_World" using Studio from scratch right up to where I have 'hello_world.exe' and can run it.  That'll be great!  Then I'll have something to tell Grandma about.  :)

1. Start GPS

2. Select default project

3. Press File->New file

4. Type:
project Hello_World is
    for Main use ("hello_world.adb");
end Hello_World;

5. File->Save as
hello_world.gpr

6. Press File->New file

7. Type:
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello_World is
begin
    Put_Line ("Hello world!");
end Hello_World;

8. File->Save as
hello_world.adb

9. Press File->Open Project and select file hello_world.gpr


You are done.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2022-09-26  9:16 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-26  6:20 A new universe of Ada Rick Duley
2022-09-26  6:45 ` Dmitry A. Kazakov
2022-09-26  7:00   ` Rick Duley
2022-09-26  7:11   ` Rick Duley
2022-09-26  7:41     ` Dmitry A. Kazakov
2022-09-28 18:28       ` Stephen Leake
2022-09-28 20:08         ` Dmitry A. Kazakov
2022-09-29  0:31           ` Gautier write-only address
2022-09-29  8:51         ` G.B.
2022-09-26  8:17     ` Simon Wright
2022-09-26  7:27   ` Simon Wright
2022-09-26  7:45     ` Dmitry A. Kazakov
2022-09-26  8:04       ` Rick Duley
2022-09-26  9:16         ` Dmitry A. Kazakov [this message]
2022-09-26  9:33           ` Rick Duley
2022-09-27  2:35           ` Rick Duley
2022-09-27  6:27             ` Dmitry A. Kazakov
2022-09-27  6:43             ` J-P. Rosen
2022-09-27  7:44               ` Rick Duley
2022-09-27 16:04             ` Björn Lundin
2022-09-28 17:40   ` Stephen Leake
2022-09-26  7:28 ` G.B.
2022-09-26  9:30 ` Jeffrey R.Carter
2022-09-26  9:34   ` Rick Duley
2022-09-26  9:37     ` Jeffrey R.Carter
2022-09-26 11:08       ` Maxim Reznik
2022-09-26 13:23         ` Kevin Chadwick
2022-09-26 18:12           ` Rene
2022-09-27 10:10           ` Roger Mc
2022-09-27 11:40             ` Roger Mc
2022-09-27 14:10             ` Simon Wright
2022-09-27 17:09               ` Roger Mc
2022-09-27 20:26                 ` Simon Wright
2022-09-28 12:14                   ` Roger Mc
2022-09-28 12:54                     ` Roger Mc
2022-09-28 18:34       ` Stephen Leake
2022-09-26 19:44 ` Marius Amado-Alves
replies disabled

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