comp.lang.ada
 help / color / mirror / Atom feed
* put a character back to the input stream
@ 1999-10-23  0:00 Frank Shixiang Yan
  1999-10-23  0:00 ` nabbasi
  1999-10-25  0:00 ` Ted Dennison
  0 siblings, 2 replies; 4+ messages in thread
From: Frank Shixiang Yan @ 1999-10-23  0:00 UTC (permalink / raw)


is there any function in ada which can put a read character back to the
input stream like cin.putback(c) in c++. it happens when i have a input
which i read a character each time
"name + 342"
when i found a digit, i know the whole thing's gonna be a number, so i
put the read digit back, then read the whole number. the same thing
happens for the string too. so i need a function to put back the current
read character back to avoid lose the first character.

thanks




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

end of thread, other threads:[~1999-10-25  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-23  0:00 put a character back to the input stream Frank Shixiang Yan
1999-10-23  0:00 ` nabbasi
1999-10-24  0:00   ` Robert Dewar
1999-10-25  0:00 ` Ted Dennison

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