// readDate.cpp // example of a void-valued function that uses reference parameters // to initialize three variables passed as arguments /* readDate() ------------------------------------------------------ * reads date mm/dd/yyyy as three integers from stdin * PRE: interactive clients must first prompt the user before * calling this function */ void readDate(int& mm, int& dd, int& yyyy){ cin >> mm >> dd >> yyyy; }