--- In [email protected], "Jalpan" <jalpan3...@...> wrote:
>
> char ch[100];
> while ( ch!='\n')

In addition to the problems Rick mentions, when you first test ch, it hasn't 
been initialised. Hence it probably isn't holding the newline character, and 
the loop stops.

One solution is something like:

    while ((ch = getch()) != '\n')

Reply via email to