From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_05,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4c78d647a27bc3e1,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-26 07:32:16 PST Newsgroups: comp.lang.ada Path: bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!ulowell!umassd.edu!bub From: bub@cis.umassd.edu (Paul Baptista) Subject: How to convert string 2 int... Message-ID: Summary: How would you convert a string into an integer..? Keywords: string, integer Sender: usenet@umassd.edu (USENET News System) Organization: University of Massachusetts Dartmouth Date: Mon, 26 Sep 1994 14:22:17 GMT Date: 1994-09-26T14:22:17+00:00 List-Id: 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