Defining Question

Em I don't know if anybody had this question but anyway here is it:
I was reading about classes and then in the example( the part of it is down there ) I saw that int HumansAge was declared not in the function itself but in the scopes near the name of the function. Maybe I missed something before that topic, but it was easier to write here. So if I understand everything right - we can declare a variable in that scopes near the name? Thanks for answer.

1
2
3
4
  void SetAge (int HumansAge)
{
Age = HumansAge;
}
What book do you have?

Read this tutorial:
http://www.cplusplus.com/doc/tutorial/functions/
In that code snippet, you're defining HumanAge as an argument (or parameter) that's passed into the function.
Topic archived. No new replies allowed.