欢迎来到天天文库
浏览记录
ID:18727287
大小:56.50 KB
页数:17页
时间:2018-09-20
《考试一观 程序填空》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、程序填空==================================================平时练习题实验二/*-------------------------------------------------------【程序填空】---------------------------------------------------------功能:任意输入三个实型数,在自定义函数qiuhe中求它们的和值,在主函数中输出和值-------------------------------------------------------*/#incl
2、ude"stdio.h"doubleqiuhe(doublex,doubley,doublez);main(){doublea,b,c;printf("Entera,b,c:");scanf("%lf,%lf,%lf",&a,&b,&c);/***********FILL***********/printf("和值=%.2f",_____);}/***********FILL***********/doubleqiuhe(doublex,_____,doublez){doublesum;/***********FILL***********/_____;ret
3、urnsum;}答案:位置1:qiuhe(a,b,c)位置2:doubley位置3:sum=x+y+z【或】sum=x+z+y【或】sum=y+x+z【或】sum=y+z+x【或】sum=z+x+y实验三/*-------------------------------------------------------【程序填空】constructionqualityacceptanceandassessmentRegulation(ProfessionalEdition)(DL/T5210.2-2009~DL/T5210.8-2009);1.9thequality
4、checkoutandevaluationofelectricequipmentinstallationengineeringcode(DL/T5161.1-2002~5161.17-2002);1.10thenormsofconstructionsupervision,theelectricpowerconstructionsupervisionregulations---------------------------------------------------------功能:将一个数组中的元素按逆序存放。------------------------
5、-------------------------------*/#include#defineN7main(){staticinta[N]={12,9,16,5,7,2,1},k,s;printf("theoriganalarray:");for(k=0;k6、}printf("thechangedarray:");for(k=0;k7、1]【或】a[6-k]=s位置3:a[N-k-1]=s【或】a[N-1-k]=s【或】a[6-k]=s【或】*(a+N-k-1)=sconstructionqualityacceptanceandassessmentRegulation(ProfessionalEdition)(DL/T5210.2-2009~DL/T5210.8-2009);1.9thequalitycheckoutandevaluationofelectricequipmentinstallationengineeringcode(DL/T5161.1-2002~5161.17-2002);18、.10th
6、}printf("thechangedarray:");for(k=0;k7、1]【或】a[6-k]=s位置3:a[N-k-1]=s【或】a[N-1-k]=s【或】a[6-k]=s【或】*(a+N-k-1)=sconstructionqualityacceptanceandassessmentRegulation(ProfessionalEdition)(DL/T5210.2-2009~DL/T5210.8-2009);1.9thequalitycheckoutandevaluationofelectricequipmentinstallationengineeringcode(DL/T5161.1-2002~5161.17-2002);18、.10th
7、1]【或】a[6-k]=s位置3:a[N-k-1]=s【或】a[N-1-k]=s【或】a[6-k]=s【或】*(a+N-k-1)=sconstructionqualityacceptanceandassessmentRegulation(ProfessionalEdition)(DL/T5210.2-2009~DL/T5210.8-2009);1.9thequalitycheckoutandevaluationofelectricequipmentinstallationengineeringcode(DL/T5161.1-2002~5161.17-2002);1
8、.10th
此文档下载收益归作者所有