Thread: 2-dimesional Array w/ enumerated type

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    15

    2-dimesional Array w/ enumerated type

    Hello,



    I need help getting started on a two dimensional array with an enumerated type for the indices to store a table.

    Example:

    ______________________________________

    | a b c

    ______________________________________

    a | 1.1 0.3 0.7

    b | 0.1 1.2 0.3

    c | 0.2 0.6 1.3

    ______________________________________



    Thank you.
    Last edited by Dave_Sinkula; 06-02-2007 at 01:10 PM. Reason: Added [code][/code] tags to preserve whitespace. Gah! Then removed it because it was HTML-butchered.

  2. #2
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    Well, you say you need help getting started...so what do you know so far?

    Do you know how to create a 2-dimensional array?

    Do you know what an enumerated type is?

    I would say that that is a good starting place, to read up on those 2 subjects and learn a bit about them. There are tutorials on the main page of this site that I believe cover both of those topics.
    My Website

    "Circular logic is good because it is."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM
  3. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  4. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM