Search:

Type: Posts; User: IAmHere

Search: Search took 0.07 seconds.

  1. Replies
    10
    Views
    2,227

    Re: A 2d array problem

    I meant
    4 is at location image1[0][1]
    4 is the value.


    so,

    top = 1;
    bottom = 2;
    left = 1;
  2. Replies
    10
    Views
    2,227

    Re: A 2d array problem

    {1, 2, 3},
    {4, 5, 6},
    {7, 8, 9}

    1 is (0,0)
    2 is (1,0)
    3 is (2, 0)
    4 is (0, 1)
    .
    .
  3. Replies
    10
    Views
    2,227

    Re: A 2d array problem

    Sorry for the confusion.

    The first 2d array is:
    int[][] image1 = { {1, 2, 3},
    {4, 5, 6},
    {7, 8, 9}, };
    The second 2d array is:
    top = 1;
    bottom = 2;
    left = 1;
  4. Replies
    10
    Views
    2,227

    Re: A 2d array problem

    (top, left) is the coordinates for the top left corner of the 2d array.
    (bottom,right) is the coordinates for the bottom right corner of the 2d array.

    So, we have 4 variables.
    ...
  5. Replies
    10
    Views
    2,227

    A 2d array problem

    Given a 2d array
    and

    4 variables that creates another 2d array.
    (top, left) and (bottom,right)

    (Those are the coordinates to form another 2d array.)
    These variables can partially cover the...
Results 1 to 5 of 5