Double-subcripted array

This is a discussion on Double-subcripted array within the C++ Programming forums, part of the General Programming Boards category; I need to label the elements of 3-by-5 double-subscripted array [sales] to indicate the order in which they are set ...

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

    Question Double-subcripted array

    I need to label the elements of 3-by-5 double-subscripted array [sales] to indicate the order in which they are set to zero by the following program segment and I don't have the first clue:


    for ( row = 0; row < 3; row++ )
    for ( column = 0; column < 5; column++ )
    sales[ row ] [ column ] = 0;

  2. #2
    Registered User Mario's Avatar
    Join Date
    May 2002
    Posts
    317
    What do you mean by labelling? Handwritting how the for loop assigns 0 to the array?

    If so read this tutorial

    Then this one.
    Regards,
    Mario Figueiredo
    Using Borland C++ Builder 5

    Read the Tao of Programming
    This advise was brought to you by the Comitee for a Service Packless World

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2009, 08:25 PM
  2. Unknown Math Issues.
    By Sir Andus in forum C++ Programming
    Replies: 1
    Last Post: 03-06-2006, 06:54 PM
  3. Class Template Trouble
    By pliang in forum C++ Programming
    Replies: 4
    Last Post: 04-21-2005, 05:15 AM
  4. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 08:48 PM
  5. needs help copying arrays
    By RedRattler in forum C Programming
    Replies: 3
    Last Post: 04-04-2003, 11:34 PM

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