Name: ________________________________ Section: _________________
Honor Code Acknowledgment: ___________________
Due: September 19
Sum
whose header is given below.
( pay attention to the post condition )
double Sum(const Vector<double> & nums, int numNums) // precondition: numNums = # of elements in nums // postcondition: returns nums[0] * nums[1] * ... * nums[numNums-1] // this function is named very poorly
getline(cin,s)
compared to using
cin >> s
where s is a string?