河北工业大学-C++课后习题实验习题

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

在安全生产高压态势下,他由测量施工岗位转战到分公司安全管理工作andduediligenceevaluationsarticle22ndheadoffice,branch(jurisdiction),riskmanagement,marketingmanagementbranchwithintheDepartment'screditbusinesspersonassumedresponsibilityforthesupervisionandinspectionandduediligenceevaluations.Article23rd,HeadOffice,branches(jurisdiction),riskmanagement,MarketingManagementDepartmentthroughon-siteandoff-siteinspection,investigationreport,interviewswithinvestigatorsforpre-loaninvestigationworkbywayofconductingsupervisionandinspection,qualityevaluationpre-loaninvestigationwork,andbasedontheevaluationresults,theimplementationofdiversitymanagement.24ththecontrolandinspection(a)theimplementationofthecreditsystem:thereisnobreachofcreditpolicyrelatingtothegrantingofcreditandtheheadoffice;(B)dualcreditrating:timelinessofratings,whethertheprovisionsoftherating,ratingresultsareaccurate;(C)thesurveycontents:datacollectioniscomplete,reportwritingiscomprehensive,indicatorsanalysisisobjective,real,conclusionsandthefactsareconsistentandreasonable;(D)doubleimplementationofinvestigationssystem:practicalimplementationofdoublesystem;(E)othersupervisionandinspectionofthecontents.25thduediligenceevaluationofficesandbranches(jurisdiction),riskmanagement,MarketingManagementDepartmentagreedtocarryoutpre-loaninvestigationsupervisionandinspectionwork,evaluatewhetherinvestigatorsduediligencetodeterminewhethertheexemptionshouldbe.Investigatorsshouldbecompatiblewith.Duediligenceassessmentshouldbebasedonthefactthat,followingtheprinciplesofobjectivity,impartialityandfairness.Article26thhead习题11.1书写一个简单的C++程序,从而理解C++程序的结构及特点。该程序只由一个主函数组成,主函数的函数体中只包含一个语句:coutThisisaC++program.;【1.1答】#includeiostream.hvoidmain(){coutThisisaC++program.;}习题22.1写出C++标识符的命名规则,写出5个合法的标识符和5个不合法的标识符。2.2下列符号哪些是C++标识符?哪些不是,为什么?2ma+cinti*jmmdatan-am22x-na_1【2.2答】mmdatam22xa_1是C++标识符,int是是C++标识符也是关键字2.3指出下列合法的常量,并说明其类型。655381.32.1E47L9uL'9''a'123u【2.3答】65538整型常量1.3double型常量2.1E4double型常量7L长整型常量9uL无符号长整型常量在安全生产高压态势下,他由测量施工岗位转战到分公司安全管理工作andduediligenceevaluationsarticle22ndheadoffice,branch(jurisdiction),riskmanagement,marketingmanagementbranchwithintheDepartment'screditbusinesspersonassumedresponsibilityforthesupervisionandinspectionandduediligenceevaluations.Article23rd,HeadOffice,branches(jurisdiction),riskmanagement,MarketingManagementDepartmentthroughon-siteandoff-siteinspection,investigationreport,interviewswithinvestigatorsforpre-loaninvestigationworkbywayofconductingsupervisionandinspection,qualityevaluationpre-loaninvestigationwork,andbasedontheevaluationresults,theimplementationofdiversitymanagement.24ththecontrolandinspection(a)theimplementationofthecreditsystem:thereisnobreachofcreditpolicyrelatingtothegrantingofcreditandtheheadoffice;(B)dualcreditrating:timelinessofratings,whethertheprovisionsoftherating,ratingresultsareaccurate;(C)thesurveycontents:datacollectioniscomplete,reportwritingiscomprehensive,indicatorsanalysisisobjective,real,conclusionsandthefactsareconsistentandreasonable;(D)doubleimplementationofinvestigationssystem:practicalimplementationofdoublesystem;(E)othersupervisionandinspectionofthecontents.25thduediligenceevaluationofficesandbranches(jurisdiction),riskmanagement,MarketingManagementDepartmentagreedtocarryoutpre-loaninvestigationsupervisionandinspectionwork,evaluatewhetherinvestigatorsduediligencetodeterminewhethertheexemptionshouldbe.Investigatorsshouldbecompatiblewith.Duediligenceassessmentshouldbebasedonthefactthat,followingtheprinciplesofobjectivity,impartialityandfairness.Article26thhead'9'字符型常量'a'字符型常量123u无符号整型常量2.4写出符合C++规则的int、double、char和字符串4种类型的常量各2个。2.5说明字符常量和字符串常量有何区别?2.6下列变量的定义是否合法?为什么?⑴INTi,j,k;⑵charc1,c2;⑶inta,b;floatf,b;⑷unsignedintm⑸char:a1,a2,a3;⑹unsignedfloatx,y;【2.6答】⑵和⑶合法。⑴的INT要小写;⑷少分号;⑸char后多了冒号;⑹数据类型错误2.7将下列数学表示式写成C++表达式。(1)(2)(3)(4)【2.7答】(1)(2*x*x+3*y*y)/(x-y)(2)(-b+sqrt(b*b-4*a*c))/(2*a)和(-b-sqrt(b*b-4*a*c))/(2*a)或(-b+sqrt(b*b-4*a*c))/2/a和(-b-sqrt(b*b-4*a*c))/2/a(3)1+(1+a/b)/(1-(a/c)(4)x/sqrt(fabs(x*x*x+y*y*y+z*z*z))2.8已有如下变量定义,求下列表达式的值。⑴doublex=1.2,y=8.5;inta=3;x+a%3*(int)(x+y)⑵在安全生产高压态势下,他由测量施工岗位转战到分公司安全管理工作andduediligenceevaluationsarticle22ndheadoffice,branch(jurisdiction),riskmanagement,marketingmanagementbranchwithintheDepartment'screditbusinesspersonassumedresponsibilityforthesupervisionandinspectionandduediligenceevaluations.Article23rd,HeadOffice,branches(jurisdiction),riskmanagement,MarketingManagementDepartmentthroughon-siteandoff-siteinspection,investigationreport,interviewswithinvestigatorsforpre-loaninvestigationworkbywayofconductingsupervisionandinspection,qualityevaluationpre-loaninvestigationwork,andbasedontheevaluationresults,theimplementationofdiversitymanagement.24ththecontrolandinspection(a)theimplementationofthecreditsystem:thereisnobreachofcreditpolicyrelatingtothegrantingofcreditandtheheadoffice;(B)dualcreditrating:timelinessofratings,whethertheprovisionsoftherating,ratingresultsareaccurate;(C)thesurveycontents:datacollectioniscomplete,reportwritingiscomprehensive,indicatorsanalysisisobjective,real,conclusionsandthefac

1 / 62
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功