From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: How to read records as strings?
Date: Thu, 29 Sep 2011 20:28:39 -0400
Date: 2011-09-29T20:28:39-04:00 [thread overview]
Message-ID: <nospam-0BF10A.20283929092011@news.aioe.org> (raw)
In-Reply-To: 1fdacb1d-d67f-4f2a-8d6a-1bdedf2754a9@z19g2000vby.googlegroups.com
In article
<1fdacb1d-d67f-4f2a-8d6a-1bdedf2754a9@z19g2000vby.googlegroups.com>,
pack2themoon <maxiang4@gmail.com> wrote:
> Hi, everyone, I'm a beginner, and I don't have a solid understanding
> of object-oriented programming. For a homework, I need to read the
> following record as strings from a file. In the next steps, I need to
> know the "length" of each word to facilitate the processing like
> "reverse", adding numbers...etc.
>
> Can I use the "length" function of bounded-string? how to use generic
> package, can anyone give me the structure of the whole program(like
> where to use, with package, where to begin..)? Thank you so much!!!
>
>
> Alice 0001 95 96
> Bob 0002 85 86
> Cathy 0003 75 76
> David 0004 65 66
> Edward 0005 85 86
> Frank 0006 77 78
As this is homework, your instructor and textbook may have some specific
things that you should already know and apply to solve this problem. I
always start by creating a Short, Self Contained, Correct (Compilable),
Example [1]. You might study these file I/O examples [2] and post your
own SSCCE here for more comments and guidance.
Out of curiosity, what text are you using?
[1]<http://sscce.org/>
[2]<http://rosettacode.org/wiki/File_IO#Ada>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
next prev parent reply other threads:[~2011-09-30 0:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1fdacb1d-d67f-4f2a-8d6a-1bdedf2754a9@z19g2000vby.googlegroups.com>
2011-09-30 0:26 ` How to read records as strings? Shark8
2011-09-30 0:28 ` John B. Matthews [this message]
[not found] ` <d983b030-44ca-402f-a242-d31634fd7a86@j19g2000vbn.googlegroups.com>
2011-09-30 4:38 ` John B. Matthews
2011-09-30 5:43 ` Jeffrey Carter
2011-09-30 22:37 ` Randy Brukardt
2011-09-30 22:52 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox