Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    10
    Views
    2,256

    Re: A 2d array problem

    When you say top or bottom do you mean the column (or row)?
    And then left or right is the row (or column)?
    Then the element at top=1,left=1 is is on the first row in the first column

    This would...
  2. Replies
    10
    Views
    2,256

    Re: A 2d array problem

    Is this what you mean:
    1 is at location (0,0)
    2 is at location (1,0)
    3 is at location (2, 0)
    4 is at location (0, 1)
    .

    The values in () are the indexes to the location in the array??
    {{(0,0)...
  3. Replies
    10
    Views
    2,256

    Re: A 2d array problem

    How are the points x,y value placed in the array?
    Something like this: {{p1x, p1y}, {p2x,p2y}

    What are the point's x,y values in this array:
    int[][] image1 =
    { {1, 2, 3},
    {4, 5, 6},
    {7, 8,...
  4. Replies
    10
    Views
    2,256

    Re: A 2d array problem

    Ok, the 4 numbers define two points: x1,y1 and x2, y2
    and x1 < x2 and y1 < y2

    Where does the test for overlap come in?
    Are there two sets of the two points?
  5. Replies
    10
    Views
    2,256

    Re: A 2d array problem

    How do you get a shape with only one variable. You need an x and y value to be able to define a shape with 4 points: top, bottom, left, right. If you have only an x value then you can only define...
Results 1 to 5 of 5