Name: ________________________________ Section: _________________
Honor Code Acknowledgment: ___________________
Due: October 30 (boo)
int MaxValue(const Vector<int> & a, int num)
// precondition: a contains num values
// postcondition: returns the largest of the values stored in a
Thus atoi("123",x,y) should result in x getting the value 123 and y getting the value true; whereas atoi("12a3",z,w) should result in w getting the value false (the value of z in this case can be anything).
void atoi(string s,int & value, bool & intOK)
// postcondition: value = integer represented by string s
// intOk = true if s represents a valid integer
// otherwise intOk = false