Problem: initializing member array before loop

Thank you. You´re right about the mistakes. I only posted it as an example.
But you are using the variable public, which I don´t attend to declare it.