Winter 2005 UCLA CS 31 Section 1 (Shinnerl)

Programming Project 7 FAQ File

The most recently added question is shown last.
Questions are in boldface. Answers are in regular text.

Last Update: 5:30am, Sat., 3/12

  1. Help! Where do I start?

  2. Simplify. E.g., can you implement a two-user system, without any transaction histories, and with hard limits on the number of items in stock for each user?

  3. What's the easiest way to incorporate dynamically sized lists into the user type?

    Use an STL vector< Item >, where Item is a type you create to represent something offered for sale. Similarly, you may use a vector< Transaction > to store a history of sales transactions. The vector type manages its own dynamically allocated memory automatically, in a way similar to that of std::string, so you don't have to employ any special memory management in your type definitions for vector members. If instead you create lists yourself as dynamically sized 2D arrays, then it's up to you to allocate and, when the time comes, deallocate the memory for them, dynamically.

  4. In the project 7 spec, in the paragraph about logging in, it says "if the username exists, print out the user's full name..." but there's no such user attribute as the full name. Can I just ignore that part of the spec?

    Yes, you may ignore that part. If you have already implemented support for full names for users, please state this clearly in your report. Sorry for this error in the spec.



Project 7 home page