Bjarne Stroustrup's <i>The C++ Programming Language</i> has all the code set in a proportional font: bold italic Times.  I found it at least as readable as any other programming book.  The ideal typeface is different for print than for screen, of course.