Multidimensional Array

This is a discussion on Multidimensional Array within the C++ Programming forums, part of the General Programming Boards category; I have a text file that contains data in 20x20 array format. I know I need to use 4 for{} ...

  1. #1
    Unregistered
    Guest

    Multidimensional Array

    I have a text file that contains data in 20x20 array format.
    I know I need to use 4 for{} loops, but I really need some help on how to do this so that I can read the entire into a 20x20 array. Also is anyone familiar with box filters? Where I have to "move" an array of 3x3 numbers over the 20x20 array to get a resultant array? I know this is a lot to ask be PLEASE HELP!

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    well what do you have so far?
    can you declare the array?
    do you know how to open and read from the file?
    why 4 loops?
    have you even thought about it?

    If you want help then show that you have at least attempted something in code.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2009, 08:25 PM
  2. Help -- allocating memory in a multidimensional array
    By jonathan.plumb in forum C Programming
    Replies: 10
    Last Post: 05-21-2009, 12:04 AM
  3. Pointer to multidimensional array
    By ejohns85 in forum C++ Programming
    Replies: 4
    Last Post: 03-24-2009, 12:17 PM
  4. Type and nontype parameters w/overloading
    By Mr_LJ in forum C++ Programming
    Replies: 3
    Last Post: 01-02-2004, 01:01 AM
  5. Help with an Array
    By omalleys in forum C Programming
    Replies: 1
    Last Post: 07-01-2002, 09:31 AM

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