From: David Conly <conly@cs.und.edu>
Subject: String Segment to Integer Question
Date: 1997/09/28
Date: 1997-09-28T00:00:00+00:00 [thread overview]
Message-ID: <Pine.SOL.3.91.970928161125.20704A-100000@agassiz> (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
------------------------------------------------------------------------------
next reply other threads:[~1997-09-28 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-28 0:00 David Conly [this message]
1997-09-29 0:00 ` String Segment to Integer Question Richard A. O'Keefe
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox