gf写C++程序遇到问题了,我又不会这些东东,所以拿上来请各位cs大牛帮忙看一下,多谢了。.google и
在线等,多谢!.google и
. 1point3acres
//Requires: n >= 0
//Modifies: nothing
//Effects: returns the int formed by reversing the digits of n
// a parameter of 123 will return 321. check 1point3acres for more.
// a parameter of 1234 will return 4321. 1point 3 acres
int reverseNumber(int n);
//Requires: n >= 0;
//Modifies: n
//Effects: alters n to be the integer formed by reversing its digits
// if n = 123, then it will be altered to be 321
void reverseNum(int & n);