reset password
Author Message
dbravoru
Posts: 60
Posted 14:46 Oct 19, 2015 |

I understand how the recursion works, but I do not know how to retrieve the secret number from each of the games.

At a glance, I would need a reference to each game.

Is there another approach I should be looking at?

vsluong4
Posts: 87
Posted 14:52 Oct 19, 2015 |

http://cs.calstatela.edu/wiki/index.php/Courses/CS_332F/Fall_2015/Week_2#Structures_and_accessor_.28or_selector_or_getter.29_functions

Last edited by vsluong4 at 14:57 Oct 19, 2015.
layla08
Posts: 70
Posted 16:27 Oct 19, 2015 |

The game structure you created contains attributes, one of which is the secret number. In order to access it, you would simply call structure-attribute, as shown in the link that CSLUONG4 posted where in order to get the student id# you call student-id#. Hope that helps!