Friday, 23 August 2013

Storing an array in a separate class file

Storing an array in a separate class file

I am coding for the Ludum Dare right now and I was trying to make a
separate class that would give me an array as the return type of a
function. I have an array set up, but I can't figure out how to make the
return type an array so that I can use it in the main function. How would
I go about returning an array and setting a variable in the main.cpp to
that array?

No comments:

Post a Comment