Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    1,337

    Re: Passing an array to the constructor!

    I would guess because S[] and T[] have not been initialized, but you attempt to add values to them.
    You need to initialize them beforehand in your constructor like this:

    S = new int[256]; // 256...
  2. Replies
    5
    Views
    1,337

    Re: Passing an array to the constructor!

    You've commented to initialize S[] and T[], but do you actually initialize them anywhere? An array needs to be initialized with a length.
    Also, when asking a question, make sure to tell us what is...
Results 1 to 2 of 2