So,I have the next code and what I'm trying to do is to get an element from a dynamic array but I get a" conversion from 'int' to non-scalar type 'Baloon' requested" error.I've tryed to return a `Baloon` object but that gives me errors in the main file.What am I doing wrong?
Ok.Defining it to return that bool is fine but i need that function to take an int when it is called(the position).Can I return only one of the 2 parameters by refference?