++



         

- 8


if ( wdCnt % 12 == 0 )

cout << endl;

// String::operator==( const String& ) and

// String::operator==( const char* );

if ( buf == the | | buf == "The" )

++theCnt;

else

if ( buf == it || buf == "It" )

++itCnt;

// invokes String::s-ize()

for ( int ix =0; ix < buf.sizeO; ++ix )

{

// invokes String:: operator [] (int)

switch( buf[ ix ] )

{

case 'a': case 'A': ++aCnt; break;

case 'e': case 'E': ++eCnt; break;

case 'i': case 'I': ++iCnt; break;

case 'o': case '0': ++oCnt; break;

case 'u': case 'U': ++uCnt; break;

default: ++notVowe1; break;

}

}

}

// operator<<( ostream&, const String& )

cout << "\n\n"

<< ": " << wdCnt << "\n\n"

<< "the/The: " << theCnt << '\n'

<< "it/It: " << itCnt << "\n\n"

<< ": " < <notVowel << "\n\n"

<< "a: " << aCnt << '\n'

<< "e: " << eCnt << '\n'

<< "i: " << ICnt << '\n'

<< "o: " << oCnt << '\n'

<< "u: " << uCnt << endl;

}

: , ( 6). :

Alice Emma has long flowing red hair. Her Daddy says when the

wind blows through her hair, it looks almost alive, 1ike a fiery

bird in flight. A beautiful fiery bird, he tells her, magical but