comp.lang.ada
 help / color / mirror / Atom feed
From: jedivaughn <jedivaughn14@gmail.com>
Subject: Re: Converting Type Characters to type string
Date: Mon, 31 Mar 2008 07:44:52 -0700 (PDT)
Date: 2008-03-31T07:44:52-07:00	[thread overview]
Message-ID: <5052229e-61c3-401d-93b6-a95edee29e58@m71g2000hse.googlegroups.com> (raw)
In-Reply-To: wszmbw04e0i7$.1ogvbnnnxl7eg$.dlg@40tude.net

Ok, Let me start over. Maybe I'm not approaching my problem the right
way. I'm trying to write a program that converts integers to roman
numerals or vice versa depending on the user input. to do this I
thought I would get the input in separate characters so that I can
easily compare the values to find whether the user inputed IX or XI or
something else. This works until unless the user wants to convert an
integer to roman numeral. to change the input to an integer I'm using
this int:=Integer'Value(str); But for this to work the input has to be
in a string not a character. I thought about taking the input as a
string and then doing a string slice on the characters and storing
them in different variables but once again I'm not sure how many
characters will be entered so how can I do that? So how would be the
optimal way of going about this?

Thanks once again for your patience

John



  reply	other threads:[~2008-03-31 14:44 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-30 20:04 Converting Type Characters to type string jedivaughn
2008-03-30 20:19 ` Pascal Obry
2008-03-30 21:08   ` jedivaughn
2008-03-30 21:28     ` jimmaureenrogers
2008-03-30 21:38     ` Ludovic Brenta
2008-03-30 21:48   ` Georg Bauhaus
2008-03-30 23:52     ` jedivaughn
2008-03-31  3:04       ` george.priv
2008-03-31  4:00         ` tmoran
2008-03-31  8:54           ` Ludovic Brenta
2008-03-31  9:59             ` Dmitry A. Kazakov
2008-03-31 10:59               ` Jean-Pierre Rosen
2008-03-31 13:50                 ` jedivaughn
2008-03-31 14:11                   ` Ludovic Brenta
2008-03-31 14:21                   ` Dmitry A. Kazakov
2008-03-31 14:44                     ` jedivaughn [this message]
2008-03-31 15:41                       ` Adam Beneschan
2008-03-31 20:26                         ` Maciej Sobczak
2008-03-31 22:06                           ` Georg Bauhaus
2008-03-31 22:33                           ` Adam Beneschan
2008-04-01  1:00                             ` jedivaughn
2008-04-01  5:34                               ` Simon Wright
2008-04-01 11:22                                 ` jedivaughn
2008-04-01 12:00                                   ` jimmaureenrogers
2008-04-01 13:22                                     ` jedivaughn
2008-04-01 17:03                                       ` Adam Beneschan
2008-04-01 21:11                                   ` Simon Wright
2008-04-01 22:22                                     ` jedivaughn
2008-04-03  5:54                                   ` tmoran
2008-04-03 14:38                                     ` Adam Beneschan
2008-04-01 16:58                               ` Adam Beneschan
2008-03-31 15:45                       ` Dmitry A. Kazakov
replies disabled

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