一结果填空40分
(1)ASCII码
charc[]=\"abcde\"
对字符数组进行word[i]=\'A\'+(c[i]+1-\'a\')操作,最后输出word存放的字符串
(2)主要考察递归,具体代码忘记
(3)s1=c++,s2=computer,strcopy(s2,s1),求s2(主要考察字符串操作函数)
(4)查找十个左右的数中的最小值,并找出这些数中能被该最小值整除的数(除了其本身)输出到屏幕上
(5)指针实现对字符串排序,输出排序后的字符串
二60分(1)输入30个学生成绩,对其进行降序排序,统计90以上和60以下人数,并求平均分15分
(2)递归实现二分查找15分
(3)用三行四列整型数组存放数据,查找数组中最小值,并输入要查找的数,如果存在就输出yes不存在输出no15分
(4)统计输入的字符(以回车为结束标志)中的0~9分别出现几次,用数组存放出现的次数15分
英语翻译海明威美文
ReadingandTranslation(score:40)
InacalmseaeverymanisapilotBulallsunshinewithoutshade,allpleasurewithoutpain,isnotlifeatall.Takethelifeofthehappiest.itisatangledyarn.Bereavementsandblessings,onefollowinganother,makeussadandblessedbyturnsEvendeathitselfmakesIfemoreloving.
Mencomeclosesttotheirtrueselvesinthesoermomofifundertshdoofsorrowandloss.Intheaffairsoflifeorofbusiness,itisnotintellectthatellssomuchascharacter,notbrainssomuchasheart,notgeniussomuchasself-conpatience,anddiscipline,regulatedbyjudgment.Ihavealwaysbelievedthatthemanwhohasbeguntolivemoreseriouslywithinbeginstolivemoresimplywithout.
Inanageofextravaganceandwaste,IwishIcouldshowtotheworldhowfewthe
realwantsofhumanityare.Toregretone\'serrorstothepointofnotrepeatingthemistruerepentance.ThereisnothingnobleinbeingsuperiortosomeothermanThetruenobilityis
inbeingsuperiortoyourpreviousself.