Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок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?
1 ответ
+ 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.