急~~一道C++ 作业

来源:百度知道 编辑:UC知道 时间:2024/06/22 01:43:18
一个朋友问我一道C++作业. 我不懂,所以请教各位行家。
他说, 在程序里输入两个数可以得到它的最大值,如果分开这两个数可以得到 0 。请问,得到 0 时的这两个数是多少?
不好意思了各位。那就换另一道题。

编写一个程序,它可以检查一个数字是否是(0 and 999) 之间的特别数字.

#include<iostream>
using std::cout;
using std::cin;
using std::endl;

int main()
{

int number;
while(1){
cout<<"Enter a number then the system will compare it"<<endl;
cin>>number;

if(number >= 0 && number <= 999)
cout<<"It's a special number"<<endl;
else
cout<<"It's not in the range"<<endl;
}
system("pause");
return 0;
}

意思不是很明白 如果分开这两个数可以得到 0 。请问,得到 0 时的这两个数是多少? 是什么意思 相加得0还是其他的什么

没有看明白!

一个硕大的问号