Subj : Re: simple c/c++ programming question about encryption To : comp.programming From : Sc0rpi0 Date : Wed Jul 06 2005 03:41 pm jagivens@hotmail.com uderzył(a) głową w klawiaturę i wyszło takie coś: > Thanks so much for the reply! How can I deal with how scanf reads a > line? I put the counter update in the if block (so that it is only > updated when a character is encrypted), but that is not really solving > how to read only one character at a time. Is there a way to flush or > discard "\n" when using scanf? And is there another way to read one > character at a time? getc(), fgetc(), getchar(), but better just put counter update into if brackets then you'll be sure program won't stop until characters really be encrypted/decrypted. -- Sc0rpi0 I hated going to weddings. All the grandmas would poke me saying "You're next". They stopped that when I started doing it to them at funerals. .