Re: Hey Please!!!! SCANF IN VGA!!!!!

Search this archive.

From: Jay Link (jlink@ilbbs.com)
Date: Thu 31 Aug 2000 - 05:29:07 IDT


Well, I think you should do as Matan said & use vga_getkey() to record the
keystrokes. Go ahead and append the input to a char array -- you can test
each key to see if it's a comma or whatnot (and then simply ignore it if
it is) -- and then do your char to float conversion when you receive a
newline.

Of course, ASCII codes 48 - 57 are the numbers 0 - 9, respectively, so it
would be easy to ignore input outside of this range.


-JL


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST