Initialize array of objects | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Initialize array of objects

Hello I have a class and I created array of objects in main,now I want initialize objects in another function outside main, how can I do?

27th May 2021, 7:24 PM
Shakiba Majd
Shakiba Majd - avatar
1 Respuesta
+ 1
Martin Taylor Again thanks a lot. Your explanations is comprehensive. In this exercise I couldn't pass array to any func ,so I used a pointer of class that refers to zero element of array and I initialized objects with it in funcs.
27th May 2021, 11:12 PM
Shakiba Majd
Shakiba Majd - avatar