COMP114 Program Code

Useful Utilities

  1. Keyboard input
  2. ReadURL
  3. Example of using local files with ReadURL.
  4. Program to generate pseudo-random reference files for Program 4. Send me email if you find a bug.

Examples

  1. Use of "break" statement in Case.
  2. Floating point in for statement
  3. Break in while loop
  4. Use of continue
  5. Scope
  6. Command-line parameters
  7. 1/22 -- Parameter Passing
  8. 1/22 -- References
  9. 1/24 -- Rectangle and Rectangle2
  10. 1/31 -- Shapes example that I created in class
  11. 2/5 -- Expanded shape example
  12. 2/12 -- Made Shape an abstract class
  13. 2/14 -- Callback example
  14. 2/14 -- Swing GUI examples (you also need the swingall.jar file, also available as swingall.zip)
  15. 2/19 -- Example of enumeration, example of menus
  16. 2/21 -- I/O Example
  17. 2/26 -- Message box example, Koch snowflake
  18. 2/28 -- Fib1, Fib2, FibTimed
  19. 3/7 -- Examples of simple tic-tac-toe player, TTT with alpha-beta pruning, and original book TTT code (which will not work in VJ++).  The first two are VJ++ projects made from modified code from Weiss book.
  20. 3/28 -- My example of Program 2. Note that it's light on error checking.  I only put in one example (in Magazine), to show you how it might be done.
  21. 4/11 -- Example of inner class
  22. 4/11 -- Example of package. Note that it unpacks into two folders.  Read the README.txt file.
  23.  

COMP114 Home Page

Last modified Thursday, April 11, 2002 08:37 AM