Go to the first, previous, next, last section, table of contents.


Exercises

These exercises should require only a few minutes. If you work through them, you will have an opportunity to become acquainted with a few of the most common errors in using the DB library.

  1. Find out where database records are kept on your system. What records are available?
  2. Run the example program in this chapter without setting the DB path. Try doing so from your home directory, and from the directory where record `100s' is kept. Can you explain the results?
  3. What happens when you compile the example program as shown, but with the #include statement omitted? with the `-ldb' (`-link db', etc.) omitted?
  4. What is the type of the argument to getvec? Why can't getvec simply return the value it reads, as in `v = getvec()'?


Go to the first, previous, next, last section, table of contents.



George B. Moody (george@hstbme.mit.edu)