1
Answer

Get an object as return value

Photo of subscribe

subscribe

20y
3.7k
1
Hi all. I´m trying to get an object this way: Object *myObject; myObject = myFunction (parameters); myFunction returns a Object type. It compile well, but when I execute, it crash. How can I assign myObject to the return value? I try to create a new instance: myObject = new Object(). But doesnt work. Thanks!

Answers (1)