Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    9
    Views
    1,541

    Re: New help using Vector class

    Where are those 8 elements added to the list?

    You missed answering this VERY IMPORTANT question:
    What does the code do with all the lines of data it reads from the file?

    The Vector's capacity...
  2. Replies
    9
    Views
    1,541

    Re: New help using Vector class

    How many elements are in the list? There needs to be at least one to be able to replace the first one.
    Use add() to put elements in the list.

    What does the code do with all the lines of data it...
  3. Replies
    9
    Views
    1,541

    Re: New help using Vector class

    The definition of s1 must be at the same scope where you refer to it. Now it is hidden within the while() loop.
    The variable s1 will be gone when the loop exits.
    If you create an instance of a...
  4. Replies
    9
    Views
    1,541

    Re: New help using Vector class

    Please copy the full text of the error messages and paste it here.


    Is the definition of s1 in scope (within the same pair of {}s) where it is being used?
  5. Replies
    9
    Views
    1,541

    Re: New help using Vector class

    What Vector class method will "replace" an element in a Vector object?
    Read the API doc and see if any of its methods say they will replace an element.

    What does the API doc say for set()?
Results 1 to 5 of 5