Help with 2 dimensional arrays

This is a discussion on Help with 2 dimensional arrays within the C++ Programming forums, part of the General Programming Boards category; I need to make a 2 dimensional array of Restaurant names (as rows) and Reviewer names (as columns). But instead ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    1

    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:

    "Menu
    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

    -Mark

  2. #2
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    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, 03:28 PM
  3. dimensional arrays
    By ZakkWylde969 in forum C++ Programming
    Replies: 3
    Last Post: 08-04-2003, 05:49 PM
  4. two dimensional arrays
    By ssjnamek in forum C++ Programming
    Replies: 4
    Last Post: 05-01-2002, 09:12 PM
  5. Two dimensional arrays
    By Jax in forum C Programming
    Replies: 1
    Last Post: 11-07-2001, 12:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21