freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

實驗一-順序表操作實現(xiàn)-資料下載頁

2025-06-30 19:44本頁面
  

【正文】 getchar()。 /*對插入后的學(xué)生身高信息表進(jìn)行倒置,結(jié)果輸出在屏幕;*/ reserve(amp。stu) //倒置順序表 printf(\nlist after reverse:\n)。 pntList(amp。stu)。 getchar()。 /*從鍵盤輸入一個身高值,統(tǒng)計與該身高相同的學(xué)生個數(shù)并輸出在屏幕*/ printf(\nInput a student height: \n)。 scanf(%f,amp。)。 c=count(amp。stu,y) //統(tǒng)計相同身高的學(xué)生數(shù)存于c中 printf(\nThe same height :%d\n,c)。 getchar()。} /*在學(xué)號從小到大排序的學(xué)生表中插入值為x的學(xué)生仍保持學(xué)號的有序性*/ void insertX(Seqlist *lp,datatype x){ int i,j。 if(lplast=MAX) Error(list is full)。 //在學(xué)號升序的順序表中找插入位置后,插入x并使表長增1elsefor(i=0。ilplast。i++)if(lplastx)break。 for(j=lplast1。j=i。j) /*從后往前元素后移*/ lp strname [j+1]=lp strname [j]。 lp strname [i]=x。 lplast++。 /*插入并表長增1*/}/*對lp指向的順序表進(jìn)行倒置操作*/void reverse(Seqlist *lp){ int i,j。 datatype temp。 //通過前后數(shù)據(jù)元素交換的方式實現(xiàn)倒置 for (i = 0。 j = lplast – 1, j i = 0。 i++, j) { temp = lpdata[i].sg。 lpdata[i].sg = lpdata[j].sg。 lpdata[j].sg = temp。 }}/*統(tǒng)計學(xué)生表中身高值為y的學(xué)生數(shù)并返回*/int count(Seqlist *lp,float y){ int i,c=0。 //遍歷順序表統(tǒng)計身高為y的學(xué)生數(shù)到c變量并返回值i = lplast。 while (i) { if (lpdata[i 1].sg = y) { c++。 i。 } }}實驗總結(jié)分析(本程序的重點(diǎn)與難點(diǎn),調(diào)試中出現(xiàn)的問題及解決方法等)
點(diǎn)擊復(fù)制文檔內(nèi)容
數(shù)學(xué)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1