注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
本帖最后由 vivajason 于 2010-10-20 12:08 编辑
gf写C++程序遇到问题了,我又不会这些东东,所以拿上来请各位cs大牛帮忙看一下,多谢了。
在线等,多谢!
//Requires: n >= 0
//Modifies: nothing
//Effects: returns the int formed by reversing the digits of n
// a parameter of 123 will return 321
// a parameter of 1234 will return 4321
int reverseNumber(int n);
.google и
//Requires: n >= 0;
//Modifies: n
//Effects: alters n to be the integer formed by reversing its digits. Waral dи,
// if n = 123, then it will be altered to be 321
void reverseNum(int & n);
帮助写下这两个function.
不胜感激!! |