What you are trying to do cannot be done in a method with local variables.
Oh yes it can if the variables are declared static so that they retain their value between calls to the function.
What you are trying to do cannot be done in a method with local variables.
Oh yes it can if the variables are declared static so that they retain their value between calls to the function.