-
Ok, I think im getting it now... im going to google this and read up on it more tho. thanks for the help everyone :D but theres 1 thing i dont get still... why does it do this?
Code:
int main() {
stats player;
player.life = 100;
player.debt = 500;
intro(player); //this... why is it player instead of stats &S?
}
is that defining player as stats &S when it gets passed to intro() ? is it like the structure is just getting handed from person to person and they can change the name?
-
You really should study basic functions and how they work.
Check this out:
http://www.mvhs.fuhsd.org/bob_vanhoy/pdfs/lesson07.pdf