//é¢è¯é¢57ï¼å为sçæ°å
//é¢ç®1ï¼å为sç两个æ°å
bool FindNumbersWithSum(int data[],int length,int sum,int* num1,int* num2)
{
bool found=false;
if(length<1 || num1==nullptr || num2==nullptr)
return found;
int ahead=length-1;
int behind=0;
while(ahead<=behind){
long long curSum=data[ahead]+data[behind];
if(curSum==sum){
*number1=data[ahead];
*number2=data[behind];
found=true;
break;
}else if(curSum