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.
Tuesday, February 8, 2011
Subscribe to:
Post Comments (Atom)
1 comment:
http://snipt.net/edwinraja/vector-functions-passing-by-reference-1/
Post a Comment