So you think you can count?

2/26/98


Click here to start


Table of Contents

So you think you can count?

Overview

Counting can be hard

Fencepost errors

Understanding fenceposts

Another viewpoint

Yet another viewpoint

A useful convention

If you use this convention...

Another useful convention

Measuring your vacation

Three weeks from 1/19

Combining intervals, part 1

Combining intervals, part 2

Fenceposts, for real

Fenceposts and buffers

Filling a buffer

Once more, with pointers

A concrete example

How might the interface look?

A note on interfaces

Buffer definition

Buffering conventions

Initialization

``Print'' a number

Empty the buffer

Implications

Emptying the buffer

Printing a row

The last page

Policy decisions

Summary

Author: Andrew Koenig

Email: ark@research.att.com

Home Page: http://www.research.att.com/info/ark