comp.lang.ada
 help / color / mirror / Atom feed
* Re: How to convert string 2 int...
@ 1994-09-27 13:48 Keith Arthurs
  0 siblings, 0 replies; 5+ messages in thread
From: Keith Arthurs @ 1994-09-27 13:48 UTC (permalink / raw)


In article <CwqqL5.CEv@umassd.edu>,
 on Mon, 26 Sep 1994 14:22:17 GMT,
 Paul Baptista <bub@cis.umassd.edu> writes:
>I'm starting to learn ADA.  I know with other languages we can convert
>a character variable to an integer.  I was wonder can ADA do this?
>
[snip]
>
>Pauloo
>
>bub@cis.umassd.edu


  You could use the 'Value attribute for converting String to Integer.  Look
up 'Value in section 3.5.5 in the LRM.


Keith Arthurs
McDonnell Douglas Corporation
Disclaimer: De vus her ur net deup en yuns uv mhik denhuld uhglus



^ permalink raw reply	[flat|nested] 5+ messages in thread
* How to convert string 2 int...
@ 1994-09-26 14:22 Paul Baptista
  1994-09-26 23:25 ` R. William Beckwith
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Paul Baptista @ 1994-09-26 14:22 UTC (permalink / raw)


I'm starting to learn ADA.  I know with other languages we can convert
a character variable to an integer.  I was wonder can ADA do this?

I'm trying to write a program that accepts a string from the user.
Then it will parse out all the numbers in the string and print the total.

Ex.   Enter string: 1x2x3x4x5x6x7x8x9x10

Result: 

1
2
3
4
5
6
7
8
9
10
---
55

Can anyone help me?

TIA!!

Pauloo

bub@cis.umassd.edu



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

end of thread, other threads:[~1994-09-29 16:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-09-27 13:48 How to convert string 2 int Keith Arthurs
  -- strict thread matches above, loose matches on Subject: below --
1994-09-26 14:22 Paul Baptista
1994-09-26 23:25 ` R. William Beckwith
1994-09-27 12:00 ` Gentle
1994-09-29 16:20 ` John J Cupak Jr CCP

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