Slide 5.21: Read.h
Slide 5.23: Unpack.h
Home

Clear.h


The file Clear.h includes two methods of the class TextBuffer:
~wenchen/public_html/cgi-bin/351/week5/Clear.h

void  TextBuffer::Clear( ) {
  nextByte   = 0;
  bufferSize = 0;
}

void  TextBuffer::Put( ) {
  cout.write( buffer, bufferSize );
  cout << endl << endl;
}

ostream& write( const char* str , streamsize n ); write a sequence of characters pointed by str until the number of characters specified by n has been successfully written or until an error occurs in the output sequence.