Two simple vector procedures
Your task is to write and test the following two procedures, which operate on vectors of
double
s:
A procedure
displayVector
that displays a vector of
double
s to
cout
, putting a single space between each vector element.
A procedure
reverseVector
that takes a vector of
double
s and reverses the order of the elements in the vector.
Check-off:
When you have written and tested these procedures, ask one of us to check you off.