实验7查找算法的实现

实验7查找算法的实现

ID:2271471

大小:138.00 KB

页数:9页

时间:2017-11-15

实验7查找算法的实现_第1页
实验7查找算法的实现_第2页
实验7查找算法的实现_第3页
实验7查找算法的实现_第4页
实验7查找算法的实现_第5页
资源描述:

《实验7查找算法的实现》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、(一)顺序查找#include#defineMAX100typedefintkeytype;typedefstruct{keytypekey;}elemtype;typedefstruct{elemtypeelem[MAX+1];intlength;}SStable;voidcreate_seq(SStable*list);intseq_search(SStable*list,keytypek);voidmain(){SStable*list,table;keytypekey;inti;list=&table;printf(

2、"请输入顺序表的长度:");scanf("%d",&list->length);create_seq(list);printf("创建的顺表内容:");for(i=0;ilength;i++)printf("list.elem[%d].key=%d",i+1,list->elem[i].key);printf("输入查找关键字:");scanf("%d",&key);seq_search(list,key);}voidcreate_seq(SStable*list){inti;printf("请输入顺序表的内容:")

3、;for(i=0;ilength;i++){printf("list.elem[%d].key=",i+1);scanf("%d",&list->elem[i].key);}}intseq_search(SStable*list,keytypek){inti=0,flag=0;meetthestandardrequirements.Postweldheattreatmentofpipesafterheattreatment,hardnesstestsshouldbeconducted,hardnesstestsamplingof

4、notlessthan10%,hardness120%,15CrMohardnessofcarbonsteelpipeshallbelessthanbasemetalsteelafterheattreatment,hardnessshouldnotbegreaterthantheparentmaterialof125%.Rateofpipelinenondestructivetestingshallbecarriedoutaccordingtothedesignrequirements,nonodesignrequirementstheSH3

5、501-2002table10"percentageofradiographicexaminationofweldedjointsandacceptablelevel",andfixednumbernotlessthanthetotalnumberof40%weldinspection.Thisprojecthasawallthicknessof32mm20#steelhighpressuretube,x-rayscannotpenetrate,thesituationmaynotallownon-destructivetestingbyγ-

6、ray,usedweldbackingandtwo-layerweldsbeforefilledbyxraydetectionmethod,theotherlayerbyultrasonicdetectormethod.Shouldbeconsistentwithexistingnationalstandardsforradiographictestingofthe...Gastankusedchainforthisprojectpromotedtheupsidedownconstruction.Chainreversalinstallati

7、onmethodshowninthefollowingfigure:weldersWeldersandweldingmethodstoparticipateinthisprojectshouldbeinaccordancewiththeMinistryofpersonnelissuedbytheboilersandpressurevesselswelderexaminationrulesforqualificationexamination,afterpassingthequalificationcertificateofweldingwor

8、k.Tankweldingmanualarcwelding,automaticwelding.Manualarcweldingcompanyhasanumberof

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。