comp.lang.ada
 help / color / mirror / Atom feed
* String Segment to Integer Question
@ 1997-09-28  0:00 David Conly
  1997-09-29  0:00 ` Richard A. O'Keefe
  0 siblings, 1 reply; 2+ messages in thread
From: David Conly @ 1997-09-28  0:00 UTC (permalink / raw)



Hey All:

	Is there any way to take a portion of a string inputed by the user at the keyboard and make it 
into an integer.  I need the user to enter a string such as "8h32" and be able to extract the 8 and the 
32 from it separately.  Currently I'm writing the string to a file and then reading the first number, 
skipping the second, and then reading the last 2 digits.  Can I perform this operation without having to 
write to a file?  Any input is welcome!

Thanks,

David Conly
conly@cs.und.edu


------------------------------------------------------------------------------
David C. Conly				| Flying.  One part aptitude, one
					| part altitude, and two parts
conly@cs.und.edu			| attitude.
http://www.cs.und.edu/~conly            |                 FLYING MAGAZINE
------------------------------------------------------------------------------





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

end of thread, other threads:[~1997-09-29  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-28  0:00 String Segment to Integer Question David Conly
1997-09-29  0:00 ` Richard A. O'Keefe

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