Problem: initializing member array before loop

You've defined it inside the function. That makes it local.

1 Like