On 04/12/2017 4:20 PM, dpb wrote:
...
> What you're looking for is to not define A as a vector ever; only assign
> either 1/11 initially and then do the test. Or, alternatively,
> initialize A to zero instead and then your sum doesn't need to even
> account for sum without the ace value.
The latter, of course, for the initial case; that way you reinitialize
it to zero before each check or retain the hand less ace sum calc...
--
...
> What you're looking for is to not define A as a vector ever; only assign
> either 1/11 initially and then do the test. Or, alternatively,
> initialize A to zero instead and then your sum doesn't need to even
> account for sum without the ace value.
The latter, of course, for the initial case; that way you reinitialize
it to zero before each check or retain the hand less ace sum calc...
--