On Sat, 11 Dec 2004 19:56:53 -0500, "Afifov" <af****@yahoo.com> wrote:
Ever thought of using scanf? What exactly do u want to take as input?
character?string? digit?
Using scanf by itself can be bad advice, since it leaves unparsed input
available for the next input routine. This wouldn't be a problem for some
people, but has been known to cause infinite loops in programs written by
newcomers.
dont use "gets" by any way. ur code will crash.
gets() will only crash (or otherwise cause undefined behaviour) if the
text entered exceeds the length of the buffer provided. If you want to
discourage the use of gets(), you should point to fgets() as a suitable
substitute. (In addition, you can also recommend use of the
fgets()/sscanf() combination for parsing input line-by-line.)