-

  • (102)
  • web- (38)
  • (22)
  • (14)
  • (13)
  • (11)
  • (3)
  • (3)

 - e-mail

 

 -

   community_coding

 -

 LiveInternet.ru:
: 29.12.2004
:
:
: 536

:


, 10 2007 . 16:35 +
_

(: . . Printf . , , . , , . , , ..   " ". , (: Turbo C++ 4, Borland Turbo C++ 3.0. (:

#include <stdio.h>
/* ; */
main()
{
    long nc;
    nc = 0;

    while (getchar() != EOF)
        ++nc;
    printf(“%ld\n”, nc);
}


: [1] []
Splint   , 10 2007 . 16:54 ()
" "?
   
_   , 10 2007 . 17:01 ()
Splint, printf . ...
   
Splint   , 10 2007 . 17:15 ()
? ?
   
_   , 10 2007 . 17:23 ()
Splint, . . . ?.. .
   
pupunussi   , 10 2007 . 17:23 ()
(EOF), . , , Enter, EOF '\n', .. , .
   
Splint   , 10 2007 . 17:28 ()
Mandrake, ...

_, Ctrl+Z - .
   
pupunussi   , 10 2007 . 17:28 ()
_
Splint, . . . ?.. .


EOF . :

$ gcc -o count count.c
$ echo -n "123456789" > in.txt
$ ./count < in.txt
9
   
pupunussi   , 10 2007 . 17:29 ()
Splint, ?
Ctrl+Z ? , , .
   
Splint   , 10 2007 . 17:34 ()
Mandrake, . , , , :)
   
_   , 10 2007 . 17:35 ()
(: , .
   
: [1] []
 

:
: 

: ( )

:

  URL