主题:数独软件
教授要求写个数独程序,这个方程我有点问题,请大家帮帮忙.这里是RME
// REQUIRES: nothing
// MODIFES: x and y
// EFFECTS: gets a coordinate pair from the user (cin)
// user enters a coordinate pair
// (in reference to display on monitor)
// returns true if the pair was valid (in bounds and correct types)
// Note: The x and y parameters are the indices into the array
// NOT the values the user entered
// PROMPTS:
// "Invalid row"
// "Invalid column"
// If erroneous input, only the 1st error will print
bool getCoords(int & x, int & y);
// REQUIRES: nothing
// MODIFES: x and y
// EFFECTS: gets a coordinate pair from the user (cin)
// user enters a coordinate pair
// (in reference to display on monitor)
// returns true if the pair was valid (in bounds and correct types)
// Note: The x and y parameters are the indices into the array
// NOT the values the user entered
// PROMPTS:
// "Invalid row"
// "Invalid column"
// If erroneous input, only the 1st error will print
bool getCoords(int & x, int & y);