Unformatted text preview: the screen, but it does send a kind of “output” back to the program. The function returns a value, which is like the “output” for the function. The function uses a return statement instead of a cout statement for this “output”. Chapter 3.4 Procedural Abstraction • You should treat a function as if you do not need to know the details of how the function works but you should know what it does (black box) • Design your algorithm in steps using pseudocode • Don’t have to use variable _par for formal parameters...
View Full Document
- Fall '08
- Subroutine, formal parameters