Results 1 to 3 of 3

Thread: Arrays in C++

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    18

    Arrays in C++

    In an array, when you allocate the number of arrays,

    (ie) int x, y, anarray[8][8];

    does that make arrays equalling 8 squared as in 64 arrays????

    I am not certain how this works so I would appreciate any info people can provide

    Thanx

    BTW........ I have found an excellent site for learning programming including c++, cobol and others, at www.cprogramming.com

  2. #2
    Junior Member
    Join Date
    Feb 2002
    Posts
    18
    Thanx to smirc and V3ERIZON who both helped to get info on C++ .
    You both been a great help
    Genius of the mind is not necessarily from the mind of a genius

  3. #3
    AO Antique pwaring's Avatar
    Join Date
    Aug 2001
    Posts
    1,409
    Yes, defining an array as int x[8][8] (or similar) would be a 8x8 array which is 64. It would run all the way from x[0][0], x[0][1]... to x[8][8].
    Paul Waring - Web site design and development.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •