hi
wat u can do is
give c=getchar()!=\n....
then inside the loop
u give break wen tat line counter is lilk this
line[0]=\n...then the prog will execute aftr inputtin many lines
Ray Devore <[EMAIL PROTECTED]> wrote:
--- Uday Oberio <[EMAIL PROTECTED]> wrote:
> hello everyone
> please help me i have one prog in "C" string that
> is
>
> Qes) Write a programm in which accept string from
> user and count how many char, how many new line, how
> many space and how many tabs in input string. but
> when i accept string with the help of gets function
> than it will accept only one line when i press enter
> it will show me output.
> now the main thing is how can i accept multiple
> line in string.
> please suggest me simple way.
> thanx a lot in advance.
> with regards
> uday
>
Maybe the key is that the answer to how many new line
characters should be 0.
Ray
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Science never follows any book...All books follow science!!!
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download
Now! http://messenger.yahoo.com/download.php