Problem: initializing member array before loop

Thank you very much for elaborating. You´re absolutely right.