In the exercises at the end of chapter 12 the exercises call for drawing various
shapes. There's nothing in the text of chapter 12 which discusses using draw() at all. Where can I find the documentation on how to use draw()??? Or can anyone give a short summary of drawing in this capacity???
I have the book but haven't read it yet, I just quickly scanned the chapter. I don't have FLTK though, so I really can't explain how parts of the library work. His website might have links to the library and that is where you got it from? None of his examples in that section will work without FLTK installed and he even says so farther on in chapter 12.8:
Getting this program to run requires more than the programs we have presented
so far. In addition to our code in main(), we need to get the interface library
code compiled and linked to our code, and finally, nothing will run unless the FLTK
library (or whatever GUI system we use) is installed and correctly linked to ours.
I might go through those sections in the next week or so because it looks interesting and relevant to a couple things I want to do, but I can't really explain more until I do.
I see. I installed the FLTK library. It's tough bc there's nothing in the book to account for the newer version of FLTK. But once you have it working, the exercises all call for "drawing", and there's nothing in the chapter(12) about using "draw" and nothing that references any other place. I"m kinda frustrated about this, since I learn on my own and I think Stroustrup should be smarter than to just leave his independent readers hanging like this.