Tuesday, February 8, 2011

exercise code

refer to your year1 structure programming book

1. pg 121 . create a new function that calculates the difference of 2 numbers

2a. pg 146. modify the code to use a vector instead of an array.
2.b. pass by reference the vector to a new function to add 5 into each elements of the vector. Cout the vector in the main() to verify the value.