Mail Archives: djgpp/1997/10/21/19:43:34
Eli Zaretskii wrote:
>
> John's analysis is very accurate. Therefore, a simple solution is to
> change the format of the second `scanf', so it does skip whitespace:
>
> printf("Write a character: ");
> scanf(" %c",&c);
Oh, gods yes. Thank you, Eli - I totally forgot about that, since I
seldom use scanf() in my own programs.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com |
| "Starting flamewars since 1993" | http://www.cs.com/fighteer |
| *** NOTICE *** This .signature is generated randomly. |
| If you don't like it, sue my computer. |
---------------------------------------------------------------------
- Raw text -