欧美疯狂三p群体交乱视频,搡老女人多毛老妇女中国,天天夜碰日日摸日日澡性色av,大乳videos巨大

中興在我們學校的筆試

時間:2020-11-10 19:08:34 筆試經驗 我要投稿

中興在我們學校的筆試

  

中興在我們學校的.筆試

2006年12月中興在我們學校的筆試,最后的大題/P

(其實這些大公司的筆試不難,也不就是如此,只要學一下數據結構就可以搞定!)

排序及查找方法

#include malloc.h
#includestdio.h
#define N 11
/*用監視哨查找*/
int search(int array[],int n,int k)
{int i;
i=n-1;
array[0]=k;
while(array[i]!=k) i--;
return(i);
}
/*折半查找法*/
int halfsearch(int array[],int n,int k)
{int i,j,mid;
i=1;j=n;
while(i=j)
{mid=(i j)/2;
if(k==array[mid]) return(mid);
else if(karray[mid]) j=mid-1;
else i=mid 1;
}
return(0);
}

/*冒泡排序法*/
void mpsort(int array[])
{int i,j,a;
a=0;
for(i=1;iN;i )
for(j=i 1;jN;j )
if(array[i]array[j])
{a=array[i];
array[i]=array[j];
array[j]=a;}
}
/*直接插入排序*/
void insertsort(int array[])
{int i,j;
for(i=2;iN;i )
{array[0]=array[i];
j=i-1;
while(array[0]array[j])
{array[j 1]=array[j--];
array[j 1]=array[0];
}
}
}
/*建立*/
void creat(int array[])
{int i;
printf(enter the array:);
for(i=1;iN;i )
scanf(%d,array[i]);
}

/*顯示*/
void print(int array[])
{int i;
printf(The numbers after sort is:);
for(i=1;iN;i )
printf(%d ,array[i]);
printf();
}


main()
{int a[11],i,x,chang;
/*printf(enter the array);
for(i=1;i11;i )
scanf(%d,a[i]);*/

aga:
printf(chang:1: use watching method finding 2:use half method finding 3: use directness intsert method sort 4:use bubble up method sort 5:exit);
scanf(%d,chang);
switch (chang)
{case 1:
{creat(a);
printf(Please int the search number:);
scanf(%d,x);
printf(The number station is:%d,search(a,N,x));
goto aga;
}
case 2:
{ creat(a);
insertsort(a);
print(a);
printf(Please int the search number:);
scanf(%d,x);
printf(The number station is:%d,halfsearch(a,N,x));
goto aga;
}
case 3:
{creat(a);
insertsort(a);
print(a);
goto aga;
}

case 4:
{creat(a);
mpsort(a);
print(a);
goto aga;
}

case 5:{ printf(exit!);break;}
default:{printf(Error!); goto aga;}
}
}


二、線性鏈表的存儲實現

struct LNODE{

ElemType data;

struct LNODE *next;

};

typedef struct LNODE LNode;

typedef struct LNODE * LinkList;

1初始化操作

Status Init_L(LinkList L){

if (L=(LinkList *)malloc(sizeof(LNode)))

{L-next=NULL;return 1;}

else return 0;

}

2插入操作

Status ListInsert_L(LinkList L,int i,ElemType e){

p=L,j=0;

while(pji-1){p=p-next; j;}

if(!p||ji-1) return ERROR;

【中興在我們學校的筆試】相關文章:

中興筆試面試經驗08-23

中興硬件筆試題08-29

中興通訊筆試真題07-09

中興公司筆試真題(含答案)09-24

中興筆試題目分享有答案12-07

筆試經驗-記中興通訊測試崗兩次筆試11-28

中興面試筆試題目分享答案12-07

最新中興Java語言筆試真題及答案09-24

2013中興筆試題JSD130911-16

中興公司軟件工程筆試真題(含答案)09-24

主站蜘蛛池模板: 恩平市| 高青县| 即墨市| 石首市| 本溪市| 辽宁省| 琼海市| 衡水市| 临桂县| 昭苏县| 广丰县| 凤山县| 舟曲县| 卓资县| 信丰县| 宜阳县| 策勒县| 临猗县| 辽阳县| 新兴县| 马尔康县| 高密市| 襄樊市| 彭州市| 桑植县| 湖南省| 莲花县| 公主岭市| 阜新市| 日照市| 抚远县| 读书| 达孜县| 永新县| 清徐县| 白玉县| 楚雄市| 罗山县| 广平县| 清镇市| 深州市|