comp.lang.ada
 help / color / mirror / Atom feed
* RE: URGENT: inserting words into an array
@ 2004-01-07 18:23 amado.alves
  0 siblings, 0 replies; 5+ messages in thread
From: amado.alves @ 2004-01-07 18:23 UTC (permalink / raw)
  To: comp.lang.ada

<<...
as you can see there is a mixture of spaces and new lines and i would
like every word in an array cell of it own. i have initialised the
array to have 20 cells of string.  is the intialisation correct or
should it be character.
>>

Try an array of bounded strings (if you know generics), unbounded strings (if you don't), or pointers to string.




^ permalink raw reply	[flat|nested] 5+ messages in thread
* URGENT: inserting words into an array
@ 2004-01-07 17:29 Qas
  2004-01-07 19:48 ` Pascal Obry
  0 siblings, 1 reply; 5+ messages in thread
From: Qas @ 2004-01-07 17:29 UTC (permalink / raw)


hello all,

before you say anything.. i have read the posts on this topic and they
say there is no definite answer to putting words into arrays you have
to have an exact number etc..

but my problem is slighlty different, i have a text file with 20 words
seperated by either a space or new line and i want to know how i can
insert each word into the array. i know that the maximum length a word
will go to is 25 characters, this is what the file looks like:

HELLO MIN
COLLINEATION
KNIFE KNIVES KNOW
DAY
NIGHT
MORNINGS

as you can see there is a mixture of spaces and new lines and i would
like every word in an array cell of it own. i have initialised the
array to have 20 cells of string.  is the intialisation correct or
should it be character.

thankyou and please reply asap.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-09 23:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-07 18:23 URGENT: inserting words into an array amado.alves
  -- strict thread matches above, loose matches on Subject: below --
2004-01-07 17:29 Qas
2004-01-07 19:48 ` Pascal Obry
2004-01-09 23:34   ` Craig Carey
2004-01-09 23:46     ` Craig Carey

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