OK, what do we want?
The key notions seem to be
Will this word fit on the current line?
Append a word to the line
Print a line
Set the line to blank
If l is a line, we will use notation like l.append(w) to append word w to line l
Previous slide
Next slide
Back to first slide
View graphic version