home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
BEGINCPP.ZIP
/
#10.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-08-05
|
3KB
|
96 lines
#line 1 "#10.cxx"
void *_new(long);
void _delete(void*);
void *_vec_new(void*,int,int,void*(*)(void*));
void _vec_delete(void*,int,int,void(*)(void*,int),...);
void exit(int);
static void cdecl _STI();
static void cdecl _STD();
struct Wsp { char _dummy; } ;
extern char *oct (long , int );
extern char *dec (long , int );
extern char *hex (long , int );
extern char *chr (int , int );
extern char *str (char *, int );
extern char *form (char *, ... );
struct ostream {
void *_ostream_bp ;
short _ostream_state ;
} ;
struct ostream *_ostream__lshiftNFNPC__ (struct ostream* , char *);
struct ostream *_ostream__lshiftNFUL__ (struct ostream* , unsigned long );
struct ostream *_ostream__lshiftNFL__ (struct ostream* , long );
struct ostream *_ostream__lshiftNFD__ (struct ostream* , double );
struct ostream *_ostream__lshiftNFNRCWsp___ (struct ostream* , struct Wsp *);
struct ostream *_ostream_put (struct ostream* , char );
struct istream {
void *_istream_bp ;
struct ostream *_istream_tied_to ;
char _istream_skipws ;
short _istream_state ;
} ;
struct istream *_istream__rshiftNFNPC__ (struct istream* , char *);
struct istream *_istream__rshiftNFNRC__ (struct istream* , char *);
struct istream *_istream__rshiftNFNRS__ (struct istream* , short *);
struct istream *_istream__rshiftNFNRI__ (struct istream* , int *);
struct istream *_istream__rshiftNFNRL__ (struct istream* , long *);
struct istream *_istream__rshiftNFNRF__ (struct istream* , float *);
struct istream *_istream__rshiftNFNRD__ (struct istream* , double *);
struct istream *_istream__rshiftNFNRCWsp___ (struct istream* , struct Wsp *);
struct istream *_istream_getNFNPC_I_I__ (struct istream* , char *, int , char );
struct istream *_istream_putback (struct istream* , char );
extern void eatwhite (struct istream *);
extern struct istream cin ;
extern struct ostream cout ;
extern struct ostream cerr ;
extern struct Wsp WS ;
extern unsigned char _ctype [];
int main ()
{
{
int _au1_word_cnt ;
extern void found_next_word (void );
register struct ostream *_au0__Xthis__lshiftNFI___ostream = 0 ;
_au1_word_cnt = -1;
while (( ((& cin )-> _istream_state == 0)) ){
_au1_word_cnt ++ ;
found_next_word ( ) ;
}
_ostream__lshiftNFNPC__ ( (struct ostream *)(
(_au0__Xthis__lshiftNFI___ostream = (struct ostream *)
_ostream__lshiftNFNPC__ ( & cout , (char *)"word count is ") ),
( _ostream__lshiftNFL__ ( _au0__Xthis__lshiftNFI___ostream ,
((long )_au1_word_cnt )) ) ) , (char *)"\n") ;
}
exit ( 0 );
}
void found_next_word ()
{
char _au1_c ;
int _au2__Xos_getNFNRC___istream ;
_istream__rshiftNFNRC__ ( & cin , (char *)(& _au1_c )) ;
while (! (((_ctype + 1 )[_au1_c ])& 0X8 ))
( (_au2__Xos_getNFNRC___istream = (& cin )-> _istream_skipws ),
( ((& cin )-> _istream_skipws = 0 ),
( _istream__rshiftNFNRC__ ( (& cin ), ((char *)(& _au1_c ))) ,
( ((& cin )-> _istream_skipws = _au2__Xos_getNFNRC___istream ),
(((struct istream *)(& cin )))) ) ) ) ;
}