James wrote: > What does it do? It will let me input the first char, but never asks > for the second. Why? and how can i make it ask for the second (or > however many i ask it for). It does, but you have already typed the answer. You forgot that <newline> is a character (or two sometimes). There are two ways about this: 1. Use fgets() to read input when prompting, then sscanf the read line. 2. Use ncurses (or similar). --- Henrik Nordström
- Weird keyboard i/o James
- Re: Weird keyboard i/o Henrik Nordstrom
- Re: Weird keyboard i/o John Gorman
- Re: Weird keyboard i/o Glynn Clements
- Re: Weird keyboard i/o James
- Re: Weird keyboard i/o Joseph Martin
- Re: Weird keyboard i/o MCENANEY WILLIAM J
- Re: Weird keyboard i/o Glynn Clements
- Re: Weird keyboard i/o MCENANEY WILLIAM J
- Re: Weird keyboard i/o Glynn Clements
- Re: Weird keyboard i/o Mojahedul-Hoque Abul-Hasanat
- Re: Weird keyboard i/o Mojahedul-Hoque Abul-Hasanat