Thread: Help with 2 dimensional arrays

  1. #1
    Registered User
    Join Date
    Nov 2002

    Exclamation Help with 2 dimensional arrays

    I need to make a 2 dimensional array of Restaurant names (as rows) and Reviewer names (as columns). But instead of just saying something like "enum Restaurant(burger king, harvey's, ect)" I have to make it so the user can create the names when asked

    Example from question:

    1. Add a Restaurant
    2. Add a Reviewer
    3. Add a Review Rating (in *'s)
    4. ....ect

    For 1 or 2, ask the user to enter the name, then if it does not already exist enter it in the appropriate array and set the corresponding row or column of the 2D array to zero."

    Not sure how to do this. Any help would be greatly appreciated. Thanks


  2. #2
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Seems u have the algorithm all laid out, try writing some psudo code so that you can see exactly what parts you are stuck on.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointers and multi dimensional arrays
    By andrea72 in forum C++ Programming
    Replies: 5
    Last Post: 01-23-2007, 04:49 PM
  2. Dynamic two dimensional arrays
    By ThWolf in forum C++ Programming
    Replies: 14
    Last Post: 08-30-2006, 02:28 PM
  3. dimensional arrays
    By ZakkWylde969 in forum C++ Programming
    Replies: 3
    Last Post: 08-04-2003, 04:49 PM
  4. two dimensional arrays
    By ssjnamek in forum C++ Programming
    Replies: 4
    Last Post: 05-01-2002, 08:12 PM
  5. Two dimensional arrays
    By Jax in forum C Programming
    Replies: 1
    Last Post: 11-07-2001, 12:53 PM