How to pass a variable to a function?

http://www.cplusplus.com/doc/tutorial/functions/