Search:

Type: Posts; User: Norm

Search: Search took 0.19 seconds.

  1. Replies
    10
    Views
    1,048

    Re: Some trubles with a simple program

    Are you asking how to return a value from a method to the code where the method is called?
    What value(s) do you want returned from the method?


    Another idea would be to pass a reference to the...
  2. Replies
    10
    Views
    1,048

    Re: Some trubles with a simple program

    Where are the points? In this array: arrayPOINTS
    A way to add up the contents of an array is to use a loop. Initialize the sum to 0 before the loop, then add each element to the sum in the loop.
  3. Replies
    10
    Views
    1,048

    Re: Some trubles with a simple program

    Are you getting errors now? Copy the full text of the error messages and post them.
    Does the code do what you want now? If not please explain.
  4. Replies
    10
    Views
    1,048

    Re: Some trubles with a simple program

    Constructors do NOT return the value of a variable.

    The omGang() method can return a value.
  5. Replies
    10
    Views
    1,048

    Re: Some trubles with a simple program

    Variables defined in methods can not be referenced by other code. They are local to the method.
    The method could return the value of a variable.
Results 1 to 5 of 5