From: "Björn Lundin" <b.f.lundin@gmail.com>
Subject: Re: Advent of Code
Date: Thu, 3 Dec 2020 18:20:39 +0100 [thread overview]
Message-ID: <rqb6p7$tss$1@dont-email.me> (raw)
In-Reply-To: <bfcade5d-505b-4610-af14-9fb89c07caa9n@googlegroups.com>
Den 2020-12-03 kl. 15:52, skrev Wendel Wang:
> Hi.
>
> Here is result so far.I am just learning Ada, so any comments welcome.
>
> https://gitlab.com/MarcusE1W/prog/-/tree/master/ada/aoc
>
> I was wondering for example if there is a way to read the data from day 2 as a record data structure? You can read it item by item, but is there a way to do it as a record?
>
I guess you can use Ada.Direct_io.
I did not look at the inputfile, but I guess i has the same format as
the frontpage. You need to define a record that can fit the data.
Here's an old course
<https://perso.telecom-paristech.fr/pautet/Ada95/chap24.htm>
and its example
<https://perso.telecom-paristech.fr/pautet/Ada95/e_c24_p3.ada>
--
Björn
next prev parent reply other threads:[~2020-12-03 17:20 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-28 3:12 Advent of Code John Perry
2020-11-28 18:40 ` Stephen Leake
2020-11-29 3:36 ` Jeremy Grosser
2020-11-29 14:03 ` Bojan Petrovic
2020-12-01 7:08 ` John Perry
2020-12-01 11:37 ` Max Reznik
2020-12-01 11:37 ` Jeffrey R. Carter
2020-12-01 12:17 ` Stephen Leake
2020-12-01 18:33 ` Per Sandberg
2020-12-01 19:45 ` Simon Beàn
2020-12-01 20:10 ` John Perry
2020-12-02 0:12 ` Stephen Leake
2020-12-01 20:37 ` R R
2020-12-02 12:35 ` Jeffrey R. Carter
2020-12-02 16:09 ` John Perry
2020-12-02 16:57 ` gautier...@hotmail.com
2020-12-02 18:01 ` John Perry
2020-12-02 20:51 ` gautier...@hotmail.com
2020-12-02 21:29 ` Max Reznik
2020-12-02 23:04 ` Stephen Leake
2020-12-03 14:52 ` Wendel Wang
2020-12-03 17:20 ` Björn Lundin [this message]
2020-12-03 17:36 ` John Perry
2020-12-03 18:25 ` Wendel Wang
2020-12-03 18:38 ` Jeffrey R. Carter
2020-12-03 18:50 ` gautier...@hotmail.com
2020-12-03 19:47 ` Björn Lundin
2020-12-08 20:44 ` Max Reznik
2020-12-08 21:06 ` John Perry
2020-12-13 18:26 ` Maxim Reznik
2020-12-13 21:36 ` John Perry
2020-12-02 22:59 ` Stephen Leake
2020-12-14 17:43 ` Gautier Write-Only Address
-- strict thread matches above, loose matches on Subject: below --
2020-12-14 19:51 Stephen Leake
2020-12-14 21:56 ` John Perry
2020-12-16 22:05 ` Maxim Reznik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox