0% found this document useful (0 votes)
22 views4 pages

2018 807程序综合设计

Uploaded by

飞机罚
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
22 views4 pages

2018 807程序综合设计

Uploaded by

飞机罚
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 4
PAB AZ H, 2AZKY 2018 ECS THIS ABA: (807) ASRS RIE (AeA io: MK A, BI 1509: BRAG ASML BAR ED RAED BRA AUGER: 1~S NBL, BND 5, JE 20 5h. TSE BAER. FESR DASE MMF RH. 1. BRAUER x, y ASP O, 1, WA x|ly HARE ft EP, RASA AO B. GC. 2 oO. MAH 2. RBH, Ka Rea A. ff Bw Cy hit 0. —hRd 3. C HARE F AERA Al B. obj C. exe ©. .cpp 4. FARE AR UA Be AL x! B. zl; C. xt D. xty: 5. BERREPENTS AMA, MU FR EMA A. CRP AF AEM main RIFT» B. ECHARFS, BA NAMA main) BSE. C. CHARF SEMA —Pe MN RIRIT. FEET AY main) BRACE FR 4). 6 Te RIA QRS 3) ARAMA A. 2&1 B. RAK? C. RAR 3 D. 3 FibaTLL 7. APE sl KR REST EE 92 RR, RERE A. if (s1=82) B._ if (sirlen(s1) = strlen(s2)) C. if tremp(st,s2)) D. if (streat(s1) > streat(s2)) 8. APART RR: int a=100, b=100; printf("%d — %d\n", ~a, b+); A, 100 100 B. 99 9 c. 99 100 D. 100 101 9. EU PRCA, TEA A. struet student { int no: char name{20]; float score }; B. struct stu[20] { int no; charname[20}: float score; } C. struct student { int no; char name[20}s float score; _} stul20}; D. student { intno; charname[20]; float score; —} stul20)}: 10. ARIAS FPRC ab AYER A. puts(a, b); B.. seanfi"%s%s",a, b); CC. seanfi"%s%s".Sa, &); D. gets("a"); gets("b"); wi int main() { char str(100]; int count{26}={0}, i-0; print "iASRA AER: 5 gets(st)s while (sti = "01 t it (tf) >a && sui] <2) RESET count{str HS else if (strfi) >= "A" && stefi] <='Z) RAN APA ANSE) count{stfi}A"}+ Hs } print" Ett 259: Mn"; for 16; i++) if count t ) primi("%c - %d\n", (HA'counti); } } return 0; } rr: BETTER: 22. HPPA SOHRE, IFS MERIT AR. Hinclude int main { int max, min, i,j; struct student char name( 10); int score; B struct student —stu[S}={"Liming”,75,"Zhangling”,89," Wanghai,93,"Liuhong",62,"Zhaogiang’,85}; 848 Raney max = min = 0; i<5; i++) { if (stufi].seore > stu{max].score) max = i else if (stu[i] score < stu{min}.score) min } printf{"Max is: %s, %d\n", stufmax].name, stufmax].score); printf("Min is: %s, 96d\n", stu[min].name, stu[min}-score); return 0; 23. FEFREATIY, BADE SUE: 12345 HEEB, FUER METER, include #include int main) t ‘unsigned int number; int d; printf("$81A 4 TE BBS: scanf("%d", &number); printf(*result :"); do { d=number%10; RARE Hy printi("%d',d)s number = number!10; ) while (number != 0); printi("\n"); return 0; I BPE: BPBTAR: wa Scant 24-26 (MBH, 9 24~25 IB 26 5, 98 26 28 5}, 3680 FP. BRAM RHS CLR EEHE, ARSHEFKS. HHSRSESMML. 24. REE, SELF PIN RAITT eA. Wl 21-2 282-4 3*1=3 32-6 34389 4ri=a 493512 44-16 S*1=5 SYB=15 5*4-20 or1=6 OFS=18 6*4=24 71-7 7321 7194-28 81-8 893-24 8'4=32 845=40 8tOm4S. 91-9 9D=18 9F3=27 94=36 9FS=45 9654 99981 25. ERA 100 SAME S. TERIAIAER, SPST 0-29 oe 30-598, OOULLMH. KAM. 26. SABER LAMA 1, HERB PORE O ~ 92 MIE SRDS ES 2 PS AEH 20

You might also like