Thread: 2D Array

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    18

    2D Array

    Does anyone have code for a 2D array ([5][4]) that adds the rows and columns? Like to use a couple for loops.

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Do your own homework!
    If you understand what you're doing, you're not learning anything.

  3. #3
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,110
    Read my sig
    &&
    Post some code and show us where exactly you are stuck.

    Greets,

    Ganglylamb.

    ::edit::

    Dont take it as an offence but programming should be an exploring experience which gives you great satisfaction and sadly Copy And Paste Satisfaction is not the one I am talking about.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    > Like to use a couple for loops.
    Exactly the approach I would take
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    ---
    Join Date
    May 2004
    Posts
    1,379
    I was going to help, but this problem is so simple that any help would be just doing the thing.
    Go back and read your book.

  6. #6
    Registered User
    Join Date
    Sep 2004
    Posts
    18

    Really

    Hey keep the comments, if you don't want to be a team player, thats your deal. We all have things in life that are easy, programming C is yours, mine is dealing with blind students. Be glad you can see this message, many can't. Have a great day, and enjoy the gift of sight.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. from 2D array to 1D array
    By cfdprogrammer in forum C Programming
    Replies: 17
    Last Post: 03-24-2009, 10:33 AM
  2. Help with mallocing a 2d array please?
    By Gatt9 in forum C Programming
    Replies: 5
    Last Post: 10-10-2008, 03:45 AM
  3. 2D array pointer?
    By willc0de4food in forum C Programming
    Replies: 4
    Last Post: 04-23-2006, 08:16 AM
  4. Read file in 2D array
    By Chook in forum C Programming
    Replies: 1
    Last Post: 05-08-2005, 12:39 PM
  5. Class Template Trouble
    By pliang in forum C++ Programming
    Replies: 4
    Last Post: 04-21-2005, 04:15 AM