comp.lang.ada
 help / color / mirror / Atom feed
* string operations
@ 2000-11-18  0:00 Margit Gut
  2000-11-18  0:00 ` Jeff Carter
  2000-11-19  0:00 ` Robert Dewar
  0 siblings, 2 replies; 9+ messages in thread
From: Margit Gut @ 2000-11-18  0:00 UTC (permalink / raw)


Hi,

my name is Margit and I am new here. I just start to learn ADA and I
have some problems in understandig what I am doing.

I try to read a string from the keyboard and then I want to write a
recursiv function to turn the characters  from the end to the beginning.

I fetch the string with Get_Line. I declared the string with
Sstring : string(1..255);
So whatever I try, the string'Length is always 255.
I can't turn this string to the opposite unless it has its correct
Length (5 for hello)
How must I declare a string, so that I can eliminate each character
separate and its Length is the correct one?
 My next poblem is, how to do a correct Function, that calls itselve.
I tried several possibilitoes, but I think I didn't understand the
problem correct.
Last question: How can I initiate a string with ""?

Can someone help me please?

thanks

Margit





^ permalink raw reply	[flat|nested] 9+ messages in thread
* String operations
@ 2000-11-24  0:00 Margit Gut
  0 siblings, 0 replies; 9+ messages in thread
From: Margit Gut @ 2000-11-24  0:00 UTC (permalink / raw)


Hi,

I needed some days, but now it runs. Many thanks to everyone

Margit

mailto: Margit.Gut@t-online.de






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

end of thread, other threads:[~2000-11-24  0:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-18  0:00 string operations Margit Gut
2000-11-18  0:00 ` Jeff Carter
2000-11-19  0:00 ` Robert Dewar
2000-11-20  0:00   ` Anders Wirzenius
2000-11-20  0:00     ` Robert Dewar
2000-11-21  6:30       ` Anders Wirzenius
2000-11-24  0:00         ` Margit Gut
2000-11-24  0:00         ` Margit Gut
  -- strict thread matches above, loose matches on Subject: below --
2000-11-24  0:00 String operations Margit Gut

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