07 2022 档案
摘要:#include<stdio.h> int M_search(int A[],int B[],int n){ int s1=0,d1=n-1,m1,s2=0,d2=n-1,m2; while(s1!=d1||s2!=d2){ m1=(s1+d1)/2; m2=(s2+d2)/2; if(A[m1]=
阅读全文
摘要:#include<stdio.h> void Reverse(int R[],int from,int to){ int i,temp; for(i=0;i<(to-from+1)/2;i++){ temp=R[from+i]; R[from+i]=R[to-i]; R[to-i]=temp; }
阅读全文