go to home page   go to next page

revised: 01/18/99, 01/29/2000, 01/13/2006, 08/03/2009

CHAPTER 7 — Running Example Programs

Chapter Topics:

These notes show many example programs. You need to run them and play with them. The most effective way to learn programming is to fiddle around with example programs.

You don't have to type in the programs to run them. If you can see the program in a browser window, then you can easily copy it to Notepad (or other editor) and then save the text to a file. Once that is done, you can compile and run the program.

To copy the code to Notepad: highlight the code by clicking in the window and dragging the mouse over the code you wish to copy. Then click Edit and then Copy in the browser's menu. Finally click Edit and then Paste in Notepad.

Now Notepad has a copy of the program. Save the copy to a file, compile it, and run it as described in the previous chapter.

If this is perfectly clear skip this chapter. If not, this chapter walks you through these steps.


Is it sometimes beneficial to type in a program rather than just copying it?