Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to return an array of classes?

Status
Not open for further replies.

SarahKate31

Programmer
Feb 14, 2002
34
US
Hi again all -- One more for you -- I have a function that takes an array of CARDS classes and inside the function, I assign values into the members of that array at a certain index, but then when I'm back in main after the function ends, the values are gone. How can I get it to "remember" the values once it is back in main? Do I have to return the array from the function? And how do I do that (syntax)? Thanks so much!! -- SarahKate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top