|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
can any one
please help me to find the number character,word,lines,spaces,tabs
new lines in a given text.using c-language in linux. |
| Sponsored Links |
|
|
|
||||
|
parvathy, please make sure that you have read our rules. Your first two threads were a crosspost and rule 4 says:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly. And this question does look like a homework question which is also against the rules. But I'm not sure. Still, blowtorch, homework or no, if you want to give a few hints, go ahead. |
|
|||
|
Quote:
He really needs to check for isspace() not just a space or a newline - especially since the initial question indicates the file is likely to include tab characters. He also needs to hold the result of the previous character evaluation so that each one of a series of space characters does not increment the word counter. |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|