Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Review
- Functions have 4 parts
- 1. Body
- 2. Name
- 3. Parameter List
- 4. Block of code
- Define Function
- *********************************
- *
- string test(string x) *
- { *
- return x + " Hello"; *
- } *
- *
- *********************************
- example of use:
- *********************************
- string abc; *
- *
- abc = test("Mike"); *
- *
- cout << abc << endl; *
- *********************************
- This will out put "Mike Hello" on the screen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement