C语言面试题大汇总之华为面试题

C语言面试题大汇总之华为面试题

ID:83386358

大小:8.79 MB

页数:75页

时间:2023-07-15

上传者:灯火阑珊2019
C语言面试题大汇总之华为面试题_第1页
C语言面试题大汇总之华为面试题_第2页
C语言面试题大汇总之华为面试题_第3页
C语言面试题大汇总之华为面试题_第4页
C语言面试题大汇总之华为面试题_第5页
C语言面试题大汇总之华为面试题_第6页
C语言面试题大汇总之华为面试题_第7页
C语言面试题大汇总之华为面试题_第8页
C语言面试题大汇总之华为面试题_第9页
C语言面试题大汇总之华为面试题_第10页
资源描述:

《C语言面试题大汇总之华为面试题》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

C☢⚪ᜧ☢⚪Eddy᦮ᳮ1ஹᔲᐰᐰ஺⌕ᵨᐰ◤⌕#ᵨ":"&'()ᐰ*ᙠ,ᦪᑁ/ᵨ012ᵨᑮ*Ḅ56ᵨᑮᐰ஺78ᨵ:;<ᘤ5ᙠ*>1,ᦪᑁ'(?@A1*ḄB᝞ᙠD1EFGᑁH?@>1*Ḅ5I1ḄJᵨKLᙠI1EFGᑁ஺2ஹ᝞M/ᵨ>1NO?@PḄᐰextern'(ᵨ/ᵨᜮᦻSḄTUV'(ᵨexternᐵXY᝞Zᵨ/ᵨᜮᦻSTUᩭ/ᵨ\1ᙠᜮᦻS]^_ḄᐰᳮᎷ?abI1;ᑏ┯eIfᙠ;1CᦻS]7z{|}z2mn6~┯.4ஹᑏ~ᑡṹḄ~ᑁ#includeintmain(void)(inta,b,c,d;a=10;b=a++;c=++a;d=10*a++;printf("b,c,d%d,%d,%d",b,c,d);return0;

110,12,1205ஹstaticᐰ)Ḅᐰᨵrfstaticᨵrfstatic,ᦪ),ᦪᨵrf1ᐰ᜜Ḅ_u(staticL᪀ᡂe☟᝱Ḅᐰ஺ᐰLw☟᝱TU☟᝱ᐰᯠVw☟᝱TU஺0DὅᙠTU6*஺0DὅḄᙠ8☟᝱ᐰḄJᵨKw᦮1¡¢>1¡¢ᵫA1ᦻS¤ᡂ2☟᝱Ḅᐰᙠᔜ1ᦻS]HwᨵᦔḄ஺5☟᝱ᐰᑣ▲ᑴeᐸJᵨKᓽyᙠ?@«ḄᦻSᑁᨵᦔᙠ*>¡¢Ḅᐸ¬ᦻS]6#ᵨ¬஺ᵫ8☟᝱ᐰḄJᵨK▲8>1ᦻSᑁy«ᦻSᑁḄ,ᦪᵨ®z'(¯°ᙠᐸ¬ᦻS]/±┯l஺2²(ᑖ᪆'(µ~¶ᦋ☟᝱¸wᦋe¬ḄTUᓽᦋe¬Ḅ¹g஺¶ᐰᦋ☟᝱¸wᦋe¬ḄJᵨK,▲ᑴe¬Ḅ#ᵨ¼஺3static,ᦪ),ᦪJᵨK6*,½ᙠᦻS஺yᙠuᦻS]#ᵨḄ,ᦪ¾«_ᑁ,ᦪstatic,ᑁ,ᦪ¾«ᙠuᦻS]_?@஺78'ᙠuᦻS(᜜#ᵨḄ,ᦪ¾«ᙠ>1ᜮᦻS]_⌕#ᵨ0:,ᦪḄᦻS⌕ᒹq01ᜮᦻS¿ᡠÁstaticᐰ)Ḅᐰᨵrfstaticᐰy|#ᓄ>Ã■ÅᙠᐸÆᦻSᓫᐗ]o/ᵨ&staticᨵrfstaticyo|Éᓄ>Ã>ÃÊË>ÃÌZ}&static,ᦪ),ᦪᨵrfstatic,ᦪᙠᑁ]yᨵ>Í,ᦪᙠÎ1oÏᵨ]Ðᢝ>ÍÒÓ6ஹ¡¢Ḅᙠ8ᚮ᪘]ᐰᙠ8☟᝱]Ö᝱ᵭᦪËᙠ8ᚮ]஺7ஹØᨵ(_?@typedefunionlongi;

2intk[5];charc;}DATE;structdata(intcat;DATEcow;doubledog;}too;DATEmax;ᑣÙprintf("%d",sizeof(structdata)+sizeof(max));Ḅ᡻ÛÌZwߟ52____ὃÝ:struct)union.(>ßᎷ?ᙠ32àáᘤ)DATEw>1union,ᵨãh.ä☢ᨬᜧḄæçwint[5],ᓰᵨ201Y⁚.ᡠ(¬Ḅᜧêw20.dataw>1struct,Î1ᑖëᓰᵨãh.ÊÃint4+DATE20+doubles=32.ᡠ(ÌZw20+32=52.ᯠ…ᙠ\:16à;íᘤint'w2Y⁚IfÌZwint2+DATE10+doubles=208ஹîᑡ᪘ᨵrfîᑡᐜðᐜ~᪘¸ðᐜ~9ஹᑏ~ᑡṹḄ~ᑁ#includeintinc(inta){return(++a);}intmulti(int*a,int*b,int*c){return(*c=*a**b);}typedefint(FUNC1)(intin);typedefint(FUNC2)(int*,int*,int*);voidshow(FUNC2fun,intarg1,int*arg2)

3FUNC1p=&inc;inttemp=p(arg1);fun(&temp,&arg1,arg2);printf("%dn",*arg2);)main()(inta;//a0;show(multi,10,&a);return0;)11010ஹò~☢ṹ]Ḅᡠᨵ┯l(⚪ó6┯}ô>µ)_(ṹw¶>1Yõö᎔¢᝞“abed”᎔¢¸“dcba”#include"string.h"main(){char*src="hello,world";char*dest=NULL;intlen=strlen(sre);dest=(char*)malloc(len);char*d=dest;char*s=src[len];while(len--!=0)d++=s--;printf("%s",dest);return0;

4Tø1>ᐳᨵ41┯l&intmain()(char*src="hello,world";intlen=strlen(src);char*dest=(char*)malloc(len+1);//⌕ᑖú>1ãhchar*d=dest;char*s=&src[len-1];//ᢣᔣᨬ¸>1Yõwhile(len--!=0)*d++=*s--;*d=0;//ý⌕þÿ\0'printf("%sn",dest);free(dest);//ᵨ⌼ᡂᑁ☄dest=NULL;//■ᢣ┐return0;)2(!◤⌕$᜜Ḅ'ᦔ᳛*+.)*┯Ḅ/#include#includemain(){charstr[]="hello.world";intlen=strlen(str);chart;for(inti=0;i

5printf("%s",str);return0;)11.34!5⚣7ᵨḄ809ᦪᙠC<=>ᵨ?@ABᙠC++>ᵨ?@ABCcᵨDEFC++ᵨinline12.HIJIK5LM2Ḅ!NJOPQ?@CPPP2ᑮ2SI13.IᐭUᵨḄV?@IWCV5IW14.voipXᵨYZ[\]CH.323\]^ஹSIP\]ஹSkype\]ஹH.248`MGCP\]15.abcdXᨵZ[fgChi┐3jklmḄcdnicd9ᦪlmᔜ9ᦪIW16.pEqᙽḄlm`qᙽḄIWVᙠabstḄZ5uvᡂḄCᭆ⌕st▤v17.unsignedchar*p1;unsignedlong*p2;p1=(unsignedchar*)0x801000;p2=(unsignedlong*)0x810000;yzp1+5=;p2+5=;{ᫀ:0x801005(}4~W5)0x810014(}420)⌱⚪21.EthternetJIᑮInternetᵨᑮZ5\]CDA.HDLC;B.ARP;C.UDP;D.TCP;E.ID

622.4U\]ḄV:BCA.TCP;B.IP;C.ICMP;D.X.2523.WindowsᑴV:CA.ᢣMuᑡ;B.ᢣMᚮ᪘;C.uᑡ;D.ᚮ᪘┯⚪25.yz☢ᨵ?@┯Cinta[60][250][1000]fork=0;kMax_GT_Length{returnGT_Length_ERROR;}{//z{⚪29.1PPhoneḄᳮV?@CIPᵯ£¤PIPPHONEᡈVolPV¦§ᙠIPᢈ©ḄᑖNᓄஹᦪ¬ᓄ®ᢈ©ᐸ°±ᳮV²³<´µ¶·3<´ᦪ¸¹ºµ¶»ṹᜐᳮᯠ¿ÀÁ[<´ᦪ¸ᢥIPÃ}ᐵ\]¹ºᡭᒹdzIPUÀᦪ¸ᒹ®ᑮIᦈᙢÊÀÁ[<´ᦪ¸ᒹËÌᩭ,dzÏṹϵᜐᳮ¿ឮÑᡂᩭḄ<´LÒ,ÓÔÕᑮᵫIPU〈<´ḄØḄ஺30.TCP/IP²L¦§Ḅ³Ú᪵ÜWᨵ?@QᵨCÝÞßàpEVá5ᵨᵨâ\]31.1ÒLM`7ÒLMᨵ?@ãäᡃæçèéêᵨḄVZ!fC1ÒLMIë᠒íVîEï☠஺7ÒLMḄᱯ2VLMòóᐹᨵõöᜧøLMḄù~ᐹᨵᦋû`üLMḄᮣþឋᙠᜐᳮᡂ஺ᑮᵨ஺32.ᑡ"5#$Ḅᵯ᝞“)*+”ஹ“./᡾+”ஹ“12+”ஹ“3456”ஹ“⍗896”ஹ“:;ᵨᡝ+”ஹ“=>ូ56”ஹ“@A”ஹ“BCᵯ”ஹ“5D▲ᑴ”ஹ“ᩭᵯHI”ஹ“JKLᵯ”MN.O┯⚪R

71.TUV☢XYᨵ[\┯]^inta[60][250][1000],i,j,k_for(k=0;k<=1000;k++)for(j=0;j<250;j++)for(i=0;i<60;i++)a[i][j][k]=0;`Rabcdeᑁ᜜ᣚiV2.#defineMax_CB500voidLmiQueryCSmd(StructMSgCB*pmsg)(unsignedcharucCmdNum;for(ucCmdNum=0;ucCmdNum

8(2)¢£ឋR¥X¦§¢£᡻¨iqXḄ©q2X¦§¢£᡻(3)ᨵ¡RXoᨵ¡Ḅiqª«ᓫ2Xᨵ¬¡®¯U°±XḄ¡.(4)¬├Rᙠ³´ᡈ¶·Xᵫ¬¹⌕¦ᑖ9ᦈ¡¼½¬Ḅ├¾Hᜧ³´ᡈ¶·2XḄ├஺2.ÀAÁ`:ÂÃÀRqÂÄ>ஹÅ>BÆÇᘤÀRÈÉÀÊÉÀ3.HeapxstackḄ஺`:Heapoᚮ,stacko᪘஺StackḄͧᵫάÏÐᑖ/ÒHeap$ḄͧÓÐᑖ/Ò஺Stackͧᨵ▲HeapoÔᜧḄÏᵫÕÖCḄmalloc×ᦪᑖḄᑁÕͧᓽᙠᚮ$,C++ÚḄonewÎÛ஺XYᙠyzÜÚÝÞ×ᦪᑖᑁÕ¹ᙠ᪘$,ßXYàáX×ᦪᵨâᦪḄã⌴ᙠ᪘$4.WindowsVḄᑁÕo᝞åæᳮḄ^ᑖ⚓æᳮ8.èèIA32VḄᑖ⚓Çᑴé⚓(4K)êëᑖ⚓ìíᜧ⚓(4M)ië9.îêqÝÞ᝞åODiqïcᓫð⊤o[\ᙢADócḄ^iq⌴ôiiq⌴ôõö÷ᢣᔣ¨iqùúûocDóḄᙢA10.ᙠIA32iᐳᨵ©ý#þÁÿᵨᡝ᝱ᑮᑁ᪶᝱ᵨring3Iring0,ring3!]ring0,ᐭvm8611.᝞ᨵ!"#$%&'$%(!஺*winamp᪵',!-./᪵"0ᵨᑁ1᧜3ᡈᐰ678(:;<=)ஹ@A-.BC..FindWindow,:;ᑏ᪗GᑮᦻIᡈJK⊤,ᐳOᑁ1஺.12.᝞PQRSTḄVWᡠᨵḄᓃ‘<ᡂ'b'?

9\:ST^8SetWindowsHookEx14.1_`abᨵabᵨᨵabcd\:ᡃḄᳮgh`ᚮsqlḄjᔠlmnopqrᩖḄ@tuv$%ᡠm$%wxmxy$%z{|ᓫ~᡻%SQL15.Templateᨵabᱯdab᎛ᵨ\Templatelm~oPᱯḄuᑏṹ,`uḄẠ.ᡃuᑏḄᦪ'᝱Ḅᵨuv&ᐵḄᵨTemplate.⌕ᵨSTLḄᘤ¡¢£ᘤm¤ᐗu.C++Ḅtemplate`"0ᙠ§¨©ªᐭ«¨©ḄᐵS஺template'"0¬ᦔ᳛Ḅ°ᔠ±²template³'ᨵᦔᙢ■¶ṹ·¸¹16.ººWindowsDNA°᪀Ḅᱯdcd஺\:WindowsDistributedinterNetApplicationArchitectureWindowsᑖ½«Wᵨ°᪀¾¿WindowsDNA`ÀÁÂnÃÄ〉WឋᖪÈgÉÊᫀḄ᪾ÍÎÏÐÑ'ᐙᑖᙢ᢬᣾ᦪÕÖ×ØÙḄcd஺WindowsDNA`Ú!ÛInternetஹÜᡝ/Þßᘤஹᵨ©¡ḄPC°ᔠàjᡂᙠáḄâÃᑖ½«©¡Êᫀ㨩ḄWᵨÁIäØ°᪀17.åæu¨©àçÞßᘤÏᵨèéêëᨵabìí\18`᱄Ḅrᑴð஺8ñò᱄ᦪóôõஹᚮ᪘Ḅrᑴð஺2é÷èãøé`!ùúûüè᡻%äḄᭆþÎlmè²ḄᐸᐳᦪᨵḄ᪘ᨵḄ᡻ᑡ஺ὅḄ!"ᦔ᳛%&'(஺%)ᙠ+ᵨ-ᔜᨵ/012᡻3├56ᑭ89:;ᳮ%=>;@)ABC஺D(〉ᔠ8ᙠSMPGᘤ-"@)ᑣJGᘤKL஺MN1.ᵨOPQᑏSswapx,yT#defineswapx,y

10x=x+y;y=x-y;x=x-y;2.ᦪXa[N],YZ[1\N-1]ᦪᐸ_`]ᦪabcd஺ᑏc]eᦪfSgabḄᦪh.(bᩖ!jkl஺(N)eᦪno2intdo_dup(inta[],intN)T:intdo_dup(intaqintN)//stuv(intsun=0;intsum2;for(inti=0;i>N==1);4.unsignedintintvert(unsignedintx,intp,intn)yzxḄ)ᣚ,plᓄ,nl◤⌕ᣚḄ!Ꮇ1ᙠ.᝞x=0b00010001,p=4,n=3ᣚx=0b01100001T:unsignedintintvert(unsignedintx,intp,intn)//ᎷPp=4,n=3unsignedint_t=0;unsignedint_a=1;

11for(inti=0;i

12constchar*str6="abc";char*str7="abc";char*str8="abc";cout<<(str1str2)<

134.c]32ḄGᘤÜGᘤḄᢣ┐{ÝÞᢣ┐{ÝÞ¹⌕ÓᙢᙬáḄᦪâ[஺80386ḄGã{32Ḅᦪá஺ᡠᢣ┐Ḅᦪâ{4]h⁚[஺5.ᢣS¨☢©ṹḄæSçlèé஺(6┯ᙢᙬëìḄíᐭ᢬ð)main()(inta[5]={1,2,3,4,5};int*ptr=(int*)(&a+1);printf("%d,%d",*(a+1),*(ptr-1));)æS22,5*(a+1)â{a[1],*(ptr-1)â{a[4],᡻{2,5&a16{✌ᙢᙬ+1,óôõöl÷c]aᦪXḄøL{øL[c]ᦪX+Ḅᜧ5(ùú{5]int)int*ptr=(int*)(&a+1);ᑣptry▭{&(a[5])ûâ{a+5nÆ᝞¨2&a{ᦪXᢣ┐ᐸüolint(*)[5];@ᢣ┐÷1⌕᪷ᢣ┐üo÷-cPḄý6DüoḄᢣ┐+1ÿḄᜧa5Ḅintᦪᢣ┐ᡠ⌕5*sizeof(int)ᡠptr▭a[5]prt(&a+1)᪵Ḅ(⌕)ᡠprt-1"#$%size#(int*)a.&aḄᙢᙬ᪵Ḅ()᪵aᦪ✌ᙢᙬ+,a[0]Ḅᙢᙬ,&a./(ᦪ)✌ᙢᙬa+1ᦪ0ᐗ2Ḅᙢᙬᓽ2[1],&2+104./Ḅᙢᙬᓽa[5].6.7809ṹᨵ<=8⚪?1).intmain()

14chara;char*str=&a;strcpy(str,"hello");printf(str);return0;)@;BᨵstrᑖDᑁFGHI#JKLM8⚪NᙠI4PQRSᑴU4PQVWᢣ┐ᡠᢣᙢᙬ஺Yᯠ[\]^N_`abcUdᑁᙠeᑏghijklm஺StrcpyḄᙠnoᦪstringpq.jkḄr⌕┯tᙠubcUdᑁFeᑏhijklm//2).char*s="AAA";printf("%s",s);s[0]='B';printf("%s",s);ᨵ<=┯w@?"AAA”PQRMW஺sᢣ┐ᢣᔣ4PQRMWᡠyzsḄ{᎛,ᨵ8⚪஺cosntchar*s="AAA";ᯠ}aMWᡠ.s[0]Ḅ~ᔠḄ஺1ஹᑏ4“᪗”4^ᐭ4ᦪḄ4஺@:#defineMin(X,Y)((X)>(Y)?(Y):(X))//_Bᨵ;2ஹᐭqM⌕ᵨᑮ▲=ᵨC¡ᑏ¢஺@:while(1){}ᡈὅfor(;;)//¥☢§4¨3ஹᐵªPstaticḄᵨ<=w@?1)«¬☟᝱¯°VW,ᵨ±²oᦪ³´ᑮ_µ.

152)ᙠ¶ᙽᑁḄstaticoᦪ"[¸¶ᙽᑁḄᐸºoᦪ»ᵨ4oᦪḄ¼ᵨ¾¸▲ᑴᙠyzºḄ¶ᙽᑁ¿3)ᙠqḄstaticᡂᕒVWÂu᦮4ᡠÄᨵ.Ḅᡠᨵ./"ᨵÅÆÇ4ஹᐵªPconstᨵ<=È(w@?1)⊤ÊMW[ËᦋḄVW஺2)[Ë⛲ᦪ^ᐭᦪ.3)Ë⛲oᦪ■Ï᜜ḄᦋÑ.4)Ë⛲ḄᡂᕒoᦪᦋVqḄᦪÒᡂᕒ.5ஹᐵªPvolatileᨵ<=È(wÓNÔ4ḄÕÖw@?×Ê¡Øᘤ./Ḅ[Úᙠ¡ØᘤÛÜÝᑮḄÞß0ᦋV஺ÕÖ?àá{â;ãäjq¸ã4åæᐳèḄVWé6.int(*s[10])(int)⊤ÊḄ<=êint(*s[10])(int)oᦪᢣ┐ᦪë4ᢣ┐ᢣᔣ4intfunc(intparam)Ḅoᦪ஺1.ᨵ0⊤ì?inta=248;b=4;intconstc=21;constint*d=&a;int*conste=&b;intconst*fconst=&a;780ᑡ⊤ìîï#¸¡ØᘤἭÏw<=w@:*c=32;d=&b;*d=43;e=34;e=&a;f=0x321f;*c4<=òòἭÏ*dóôconst,ἭÏe=&aóôconstἭÏconst*fconst=&a;ἭÏ2.õᣚ4VWḄ¼ᵨ÷Ô4VW஺ᓽa=3,b=5,õᣚøa=5,b=3;@:ᨵùúùᵨûüûùᵨý(Lᡈ)a=a+b;b=a-b;a=a-b;or

16a=aAb;//"Ú.int,char..b=aAb;a=aAb;oraA=bý=a;3.cÿC++Ḅstructᨵcc++structḄ⌕cḄstructᨵᡂᕒᦪc++Ḅstruct஺c++structclassḄ⌕ᙠḄᩗ▲struct#public,class#private.4.#include#includevoidgetmemory(char*p)(p=(char*)malloc(100);)intmain()(char*str=NULL;getmemory(str);strcpy(p,"helloworld");printf("%s/n",str);free(str);return0;)$%&'getmemoryḄmalloc()*+᝱ᑁfree().str/01ᓻ◅5.charszstr[10];strcpy(szstr,"0123456789");4567#

17;:;<=,?@A᪵C⌼ᡂEFḄOS,⌚HḄᑁI.6.ᑡLMNO$ḄPQᑴSTUᐸWXY஺:[\/0]^_Qᑴ`a┝c$Cᔠᑖfghi7.O$jkl]Ḅ⌶nᐳpqhirst⌴hic⍝ᦻxhi#yẠ☢|}ᐺ|⚪silver6|02Aᨴ200711:41☢|}ᐺ|⚪AuthorVince--------ᓽ$ᙠ☢|⌕ᝅ⚪᝛Cᩭᔲᑣᨵ(៎#ᨵ`ᩔ᪵ᡃC1ᑁ¢Ḅ஺ᝅ⚪£¤ᓫ¦§¨(©ᑖᓽª⌕«᝛¬ᩭ®¯°±²³ᦻ±²´µ¶·ᦻ¸ᩭ¹ᦻº»|ᢈ½Ẇ¿Àhttp://blog.csdn.net/vincetest1$yẠ1.1yÁᭆÃ1.constḄᳮÅconstchar*,charconst*,char*constḄÆ⚪MÇC++☢|ÈÉÊCᨵḄ⚪Ë஺ÌÍÎᭆÃÏÊᨵÐÑNÒ·ÓgE;Ô£1I᧕Ö×஺BjarneᙠØḄTheC++ProgrammingLanguageÙ☢=ÚAÛÖḄÓF«AÒ·ÜÝᔣßà஺char*constcp;*àᡂpointertocpisaconstpointertocharconstchar*p;pisapointertoconstchar;charconst*p;

18XtuC++v☢xᨵconst*Ḅyz{ᡠbconst|}~+☢ḄA஺2.cᢣ┐int*p[n];,ߟ-ᢣ┐ᦪKHᐗᙳᢣᔣ᦮AᦪḄᢣ┐஺int(*p)[n];--------pᢣᔣ,ᦪKḄᢣ┐\H,ᦪKᨵnH᦮Aᦪ஺int*p();--------------ᦪᢣ┐ᢣ┐ᢣᔣḄk஺int(*p)();--------pᢣᔣᦪḄᢣ┐஺3.ᦪK⚪(\H⚪ᨵ◅Ḅ)`☢\H'(᡻*ᨵ┯ᡈὅᦔs#defineMAX255intmain()(unsignedcharA[MAX],i;for(i=0;i<=MAX;i++)A[i]=iá)h$MAX=255,ᦪKAḄ`᪗:0..MAX-1,\ᐸ,ᐸ¡iᑮ255",ᑁ᡻*A[255]=255;\¥¦§xᨵ⚪¨for(i=o;i<=MAX;i++)©¥"ᵫunsignedcharḄkᙠ(O..255),i++biª0«..¬▲`®.¯charA,H°⁚k[-128,127],unsignedchar[0,255]4.C++:memset,memcpyVstrepyḄ᪷¦fg6$:#include"memory.h"memsetᵨᩭ´,µᑁ¶·¸ᐰº»¼½H°{,¾ᵨᙠ´¿ÀḄ°{ÁÂ*ÃÄᓄ‘‘ᡈ''ÈÉ:chara[100];memset(a,",sizeof(a));

19memcpyᵨᩭãᑁäåæçäåèéᦪêëìḄ.íᢣïäåḄᦪê?@áðchara[100],b[50];memcpy(b,a,sizeof(b));¶ñ᝞ᵨsizeof(a),C⌼ᡂbḄᑁᙢᙬõ=஺strcpyöÐ(äå÷øùúç⍗ᑮ‘\0'ö6ÿchara[100],b[50];strcpy(a,b);᝞ᵨstrcpy(b,a),⌕aḄ(ஹ0,)ᔲ50᝞ᑣ!⌼ᡂbḄᑁ%ᙢᙬ()஺strcpy+,externchar*strcpy(char*dest,char*src);(ASSERT((dest!=NULL)&&(src!=NULL));Char*address=dest;While((*dest++=*src++)!='\O')Continue;Returndest;)ᵨ-#include./0srcᡠᢣᵫNULL45Ḅ6ᑴᑮdestᡠᢣḄᦪ:஺;<src=destᡠᢣᑁ%>?@ABCDEdestFGᨵIJḄKLᩭNOsrcḄ஺PQᢣᔣdestḄᢣ┐஺memcpy+,externvoid*memcpy(void*dest,void*src,unsignedintcount);(ASSERT((dest!=NULL)&&(src!=NULL));ASSERT((dest>src+count)||(src>dest+count));//■Uᑁ%CDVABᵨrestrictW⛲ᢣ┐Byte*bdest=(Byte*)dest;Byte*bsrc=(Byte*)src;While(count-->0)

20*bdest++=**bsrc++;Returndest;)ᵨ-#include./ᵫsrcᡠᢣᑁ%>?6ᑴcount⁚ᑮdestᡠᢣᑁ%>?஺;<src=destᡠᢣᑁ%>?@/CDZᦪPQᢣᔣdestḄᢣ┐஺Memset+,externvoid*memset(void*buffer,charc,intcount);ᵨ-#include./0bufferᡠᢣᑁ%>?Ḅcount⁚[\ᡂc஺;<PQᢣᔣbufferḄᢣ┐஺5.ASSERT()]^_ᵨḄ`:ASSERT஺bcdefghiᵨḄjᙠdelmfnopqrᑁḄ⊤tu᝞v⊤tuwFALSE(0),dexyz┯|}~U᡻m஺᝞v⊤tu@w0,ᑣ᡻m☢Ḅ஺jh+ᩭᑨdeᔲ)<-Ḅᦪ᝞v)~UdeBCvfV┯|஺᝞nᙠde@w0,᝞vw0A/┯|AB᪵ᑏdeASSERT(n!=0);k=10/n;ASSERTᨵᙠDebug᱐¡¢ᨵᦔ᝞v¤¥wRelease᱐¡ᑣ¦§ᶍ஺assert஺Ḅ./©ªnANSIC᪗¬®ḄZᦪn¯ASSERTḄC⌕>°ABᵨᙠRelease᱐¡஺6.system("pause");±ᵨ?`:³´Ḅᨚ¶deᢥ¸¹º»!ᡭᓺ"ᢥ¸¹஺஺஺஺஺"ḕÀiᵨgetchar()

217.ÁÂC++Ḅ©=CÃ☢Ḅstructᨵ^_>°Ä`:C++Ḅ©ᐹᨵᡂᕒÈÉ./}EᐹᨵÊË᝱©஺஺ᱯÎÏcÃḄstructÐᨵcÃ☢ḄstructÐᨵᡂᕒZᦪ@/ÊÑÒÓÓ.8.ÁÕÕ᪆᪀Zᦪ=ØZᦪḄᵨ-=±ᵨÄ`:᪆᪀ZᦪVᱯÙḄ©ᡂᕒZᦪnÐᨵPQ©,ÐᨵÚᦪ@/Ûbᵨ,VÐᨵCÝ஺ᙠ©ÞßÒàá45Ḅf᎛ᵫ³´ãäbᵨåæᙠ᪀⌼ZᦪᑖèḄéê஺ëᙠlmf/ìᐸ©,îïbᵨðZᦪḄ/ñòwË᝱ឋᡈòõὶ¤஺÷᪆᪀ZᦪøᙠÞßùúûᦈýþ±ÿ᝞ᦈᑁᦪḄᵨḄᦪ᱄ᦪ⌚ᙠ"ᵨ#$%"ᵨ⌚ᦪ᝞&'ᦪᑣ')*+ᙠ⌚#ᨵ-./Ḅ012஺45:789:᱄ḄᦪḄ;<=⌚,override,1>஺verI஺ad?7@A7@ḄᭆC>DE☢ᔣHIJ7@ᢣḄᙠL-ᦪMNᦪḄOᦪ⊤>..7@ᙠIRSTUV9+Ḅ☟᝱ḄYZ7@[L᝱\ᐵ.[☢ᔣHIJ\ᐵ.^ᨵ'ᦪḄ_*`H>abᓄHd⌕ᵨfg//9.ᐰklmnkolmᨵpqrstuqavḄtwx.nIRᘤuqz⍝Ḅt|;ᐰklmḄ~0ᕜS᦮-JḄ#T1kolmḄ~0ᕜSᑣkoᦪᡈJ"ᵨḄ#T஺ᐸavᵫIRᘤᙠIR#ᵨ>ᑁᑖ<஺ᐰklmᙠmainᦪ"ᵨUᑖ☟᝱lmᑣᙠmainᦪU2ᓄ+஺kolmᑣᙠᵨᡝ᪘%᝱ᑖḄ?IRᳮḄ%M/ᙽA10.8086LḄx.tᙠᦪ¡¢£¤uqavḄ?

22|:8086x.16x.ᐸᦪ¡¢£20஺12J¦§1.IᑏᵨC©ªavḄ«n▤▤®⚪Ḅ⌴±²<³|:longintfact(intn)(|f(n==0||n==1)Return1;ElseReturnn*fact(n-1);)2.´ᑖµ¶²<³1)⌴±high)return-1;mid=(low+high)/2;if(x==a[mid])returnmid;if(x

23mid=(low+high)/2;if(a[mid].key==key)returnmid;elseif(a[mid].key2ɳÁ⌴±²<³intf(intn)(inti,s,s1,s2;s1=1;/*s1ᵨEÊf(n-1)ḄÂ*/s2=1;/*s2ᵨEÊf(n-2)ḄÂ*/s=1Ëfor(i=3;i<=n;i++)(s=s1+s2;s2=s1;s1=s;)return(s);)⌴±²<³Intf(intn)

24If(n==1||n==2)Rerurn1;ElseRerutnf(n-1)+f(n-2);)4.ÌᣚÎ-ᦪ>ᵨÏÐᙽÑᑁ³|:inta=.......;intb=.......;a=a+b;b=a-b;a=a-b;5.ᑈÓ᣸³|:voidBubbleSort(elemtypex[],intn)//#TØᩖÚ*0(n*n);(inti,j;elemtypetemp;for(i=1;ix[j+1].key)(temp=x[j];x[j]=x[j1];+x[j+1]=temp;)))//⊡ᐙ/-ᦋḄᑈÓ²<³voidBubbleSort(elemtypex[],intn)

25Inti,j;BOOLexchange;//Ìᣚ᪗Üfor(i=1;i=i;--j){lf(x[j]>x[j1])+(x[0]=x[j];X[j]=x[j+1];X[j1]=x[0];+Exchange=true;//ß~+Ìᣚ¦à᪗Ü*á.))if(iExchange)//*ß~âᣚ,äåæ²

26exit(O);)ch=getchar();while(ch!='#')(fputc(ch,fp);putchar(ch);ch=getchar();)fclose(fp);)7.winsocketIJ//M->┯//ëìᘤíṹ#include#includevoidmain(){WORDwVersionRequested;//᱐ðñWSADATAwsaData;//ᦪ¡interr;wVersionRequested=MAKEWORD(1,1);err=WSAStartup(wVersionRequested,&wsaData);if(err!=0)(return;)if(LOBYTE(wsaData.wVersion)!=1||HIBYTE(wsaData.wVersion)!=1)

27WSACIeanup();return;SOCKETsockSrv=socket(AF_INET,SOCK_STREAM,0);//ÊËᝅÍ°SOCKADDR_INaddrSrv;addrSrv.sin_addr.S_un.S_addr=htonl(lNADDR_ANY);addrSrv.sin_family=AF_INET;addrSrv.sin_port=htons(6000);bind(sockSrv,(SOCKADDR*)&addrSrv,sizeof(SOCKADDR));//οÏÐlisten(sockSrv,5);//ᣚsocketᝅÍÑÒÓᝅÍÑSOCKADDR_INaddrClient;intlen=sizeof(SOCKADDR);while(1)//¬▲(SOCKETsockConn=accept(sockSrv,(SOCKADDR*)&addrClient,&len);charsendBuf[100];sprint(sendBufWelcome%stohttp://www.sunxin.org/",inet_ntoa(addrClient.sin_addr));send(sockConn,sendBuf,strlen(sendBuf)+1,0);charrecvBuf[100];recv(sockConn.recvBuf);printf("%sn",recvBuf);closesocket(sockConn);WSACIeanup();

284³MServeròËFile->New->Win32ConsoleApplication,J³TcpSrvË»File->New->C++SourceFile,ᦻè³TcpSrvËᙠóJḄSettingḄLinkḄObject/librarymodules⚗⌕õᐭws2_32.lib#include#includevoidmain(){WORDwVersionRequested;WSADATAwsaData;interr;wVersionRequested=MAKEWORD(1,1);err=WSAStartup(wVersionRequested,&wsaData);//÷%winsockDllif(err!=0)(return;)if(LOBYTE(wsaData.wVersion)!=1||HIBYTE(wsaData.wVersion)!=1)(WSACIeanup();return;)SOCKETsockClient=socket(AF_lNET,SOCK_STREAM,0);SOCKADDR_INaddrSrv;addrSrv.sin_addr.S_un.S_addr=inet_addr("127.0.0.1");addrSrv.sin_family=AF_INET;addrSrv.sin_port=htons(6000);

29connect(sockClient,(SOCKADDR*)&addrSrv,sizeof(SOCKADDR))ËcharrecvBuff100];recv(sockClient,recvBuf,100,0);printf("%sn",recvBuf);send(sockClient,"Thisiszhangsan",strlen("Thisiszhangsan")+1,0);closesocket(sockClient);WSACIeanup();)4³MClientòËFile->New->Win32ConsoleApplication,J³TcpCIientËᯠFile->New->C++SourceFile,ᦻè³TcpCIientËᳮᙠóJḄSettingḄLinkḄObject/librarymodules⚗⌕õᐭws2_32.lib8.Ḅzù(Áú>┯Ḅ/⍝⚪û)..C++#includeclasshuman(public:human(){human_num++;};//üý᪀⌼ᦪstaticinthuman_num;//☟᝱ᡂᕒ~human(){human_num;print();voidprint()//

30cout<<"humannumis:"<

31ᑖ᪆,humanhi;//ᵨ᪀⌼ᦪ…hum_num=1;h1.print();//!":"humanis1"humanh2=f1(h1);///ᵨf1(h1)Ḅ12ᵫ4ᦪ5ᦪ6ᢥ89⌴;<ᵨḄ=ᑴ᪀⌼ᦪ,h2?@ᨵᵨḄ᪀⌼ᦪ.C/C++2CDEᕒFὺHI☢KK⚪Mᐭᒈ᪆silver6|25Pᨴ200609:07RᦻḄᑏUVḄ?Wᙠ4XYC/C++2Cᕒ[\☢Kᢣ^#_ᙠ`ᢈbcᑖ᪆☢K⚪Ḅᑁe஺ᦻḄᜧhᦪ☢K⚪ᩭjᔜᜧlmᑖK⚪nop5ὃrstḄuI஺vh☢K⚪wxyᓫᓾ◤⌕M~ḄR"Ḅno஺⌕[☢Kὅᑏ*ᨬyᓫḄstrcpyᦪw"☢Kὅᙠᢈbcᑮr᪵Ḅ2ᡃᑏ*strcpyᦪᔩᡃj6ᡃᑏ"Ḅstrcpyᑮ10ᑖḄ2ᑖ஺ὅ`Rᦻwᑮstrcpyᦪ`2ᑖᑮ10ᑖnoḄ¡¢wwj£4¤¥᪵Ḅ¦஺§᜜¨ᨵ©☢K⚪ὃª☢Kὅ«ᣩḄ®¯஺ᑖ᪆°©☢K⚪R±ᒹ³´Ḅµᕡឋ#U¸Ẇº»ᕒ¼1;°©☢K⚪ḄMᐭᒈ᪆ᑣ¾¿À´j±Ḅᑁ஺2.Á┯⚪K⚪1:voidtest1()(charstring[10];char*str1="0123456789";strcpy(string,str1);}K⚪2,voidtest2()

32charstring[10],str1[10];inti;for(i=0;i<10;i++)(str1[i]='a';)strcpy(string,str1);)Ô⚪3,voidtest3(char*str1)(charstring[10];if(strlen(str1)<=10){strcpy(string,str1);)kh$Ô⚪1°{Ástr1◤⌕11H°⁚Ö}¶×`(ᒹØÙÚḄÛstring|ᨵ10H°⁚Ḅ·¸strcpyÜÝᦪKÈ´Ô⚪2,᝞s☢Ôὅᢣq°{ᦪKSM1;}ᙠᦪKᑁrßabà3ᑖ;᝞s☢Ôὅᢣqstrcpy(string,str1)ãᵨ9äåstr1ᑁ¶æçᑴᑮstringᑁ¶æᡠçᑴḄ°⁚ᦪᐹᨵ;ê¿ឋabà7ᑖᙠìíẠtᢣqïᦪstrcpy01ðñḄà10ᑖÈ´Ô⚪3,if(strlen(str1)<=10)òᦋif(strlen(str1)<10),ustrlenḄrsóôõ''ᡠᓰᵨḄ1H°⁚஺ᒈ᪆ὃú´í¦ûḄüý(1)°{Áb'\0’rÚÈ(2)´ᦪKÿḄ(3)ᦪstrcpyḄ᝞ᑏ᪗strcpyᦪḄᑖ

3310,Ä☢"Å*WÆᑖḄoᫀ:2ᑖvoidstrcpy(char*strDest,char*strSrc){while((*strDest++=*strSrc++)!=");)4ᑖvoidstrcpy(char*strDest,constchar*strSrc)//ÈÉÊËÌÍconst,⊤Ïᐸ!ᐭ5ᦪÍ2ᑖ|while((*strDest++=*strSrc++)!=");)7ᑖvoidstrcpy(char*strDest,constchar*strSrc){//;ÉᙢᙬÓVḄᙢᙬÍÔ0ÕÖÍ3ᑖassert((strDest!=NULL)&&(strSrc!=NULL));while((*strDest++=*strSrc++)!=");10ᑖ//r×ØÙÚÛUÈVḄᙢᙬÜÝÍ3ᑖÞchar*strcpy(char*strDest,constchar*strSrc)(assert((strDest!=NULL)&&(strSrc!=NULL));char*address=strDest;while((*strDest++=*strSrc++)!=");returnaddress;}`2ᑖᑮ10ᑖḄÅ*oᫀᡃßàáḄwᑮââḄstrcpyᯠᨩåḼ°¥h᳘èW6éḄÞ◤⌕h¥ê×ḄRᑏ*Ḅstrcpyë1

34(4)strlenḄᨵᒹ!"#$%Ḅ“஺(ὅ*+,-ᑖḄstrcpy᱐/01234ᑏ510ᑖḄstrlenᦪ+67Ḅ᱐/89intstrlen(constchar*str)//:ᐭ<ᦪconstassert(strt!=NULL);//=>!"#ᙢᙬA0intlen;while((*str++)!="){len++;}returnlen;D⚪4,voidGetMemory(char*p)(p=(char*)malloc(100);)voidTest(void)(char*str=NULL;GetMemory(str);strcpy(str,"helloworld");printf(str);}D⚪5,char*GetMemory(void)(charp[]="helloworld";returnp;}voidTest(void)(char*str=NULL;

35str=GetMemory();printf(str);K⚪6,voidGetMemory(char**p,intnum){*p=(char*)malloc(num);)voidTest(void)(char*str=NULL;GetMemory(&str,100);strcpy(str,"hello");printf(str);K⚪7,voidTest(void)(char*str=(char*)malloc(100);strcpy(str,"hello");free(str);…//ḕᶍḄᐸïðñ)no,K⚪49ᐭGetMemory(char*p)ᦪḄò5ÊËÌᢣ┐ᙠᦪᑁôᦋò5?WḄᦋ9ᐭò5Ḅ8᡻÷char*str=NULL;GetMemory(str);$ḄstrøᯠNULLK⚪5|charp[]="helloworld";

36(returnp;Ḅp□ᦪúᦪᑁḄûjüýᙠᦪÜÝ$ᑁþÿ஺ᕒḄ┯ᐸ᪷ᙠᳮḄ஺⚪6ḄGetMemory!"#⚪4Ḅ$⚪%ᐭGetMemoryḄ'ᦪ)*+,ᢣ┐Ḅᢣ┐/ᙠGetMemory0᡻2ᵭ4ᑁ6789:I*p=(char*)malloc(num);;<ᑨ>ᑁᔲᵭ4ᡂABCDEif(*p==NULL)(…//I2ᵭ4ᑁᜫKᜐᳮ}__1⚪7ᙠM⚪6N᪵Ḅ$⚪ᙠ᡻2|char*str=(char*)malloc(100);;PQ᜜ᙠfree(str);

37(3)Ḅ᝱ᑁᵭ4஺☢ḄZᨵ┯Eswap(int**p1,int*p2)(int*p;*p=*p1;*p1=*p2;*p2=*p;}ᙠswap_ᦪ0pZ[“]”ᢣ┐ᨵXYᢣᔣ¡¢VW£2Ḅ¤¥஺ᙠVC++0DEBUG£2§¨©┯"AccessViolation”஺ªBªᦋ)Eswap(int*p1,int*p2)(intp;P=*P1P*p1=*p2;*p2=p;}3.ᑁA⚪⚪1EᑖBOOL,int,float,ᢣ┐M“8”Ḅif9:(Ꮇ)var)uEBOOLEif(!var)intEif(var==0)floatEconstfloatEPSINON=0.00001;if((x>=-EPSINON)&&(x<=EPSINON)ᢣ┐Eif(var==NULL)

38ᒈ᪆:ὃfa08ᑨ>Ḅ“ᑁA”BOOLḄ0ᑨ>wᐰX¬ᑏᡂif(var==0),®int`X¬ᑏᡂif(!var),ᢣ┐Ḅᑨ>`X¬ᑏᡂif(!var),D¯ᑏ°±ᯠqYrs£2/Z[Ḅ“¾”ஹ“Ꮇ”BÀÁÂᵨif(var)ஹif(!var),⊤Ãᐸ)“ÄÅ”ᑨ>P᝞»ᵨifᑨ>Z[ᦪ8(shortஹintஹlongÆ)Bªᵨif(var==0),⊤ÃM஺I2“ᦪ8”DḄP®ᑨ>ᢣ┐ᑣ〉Êᵨif(var==NULL),ZËÌḄÍ஺ÎÏÐÑsᡠ¬XÓᡭ஺21ᵨ“=="ᡈ"Ø=”Mᦪ*Bª°Ùᓄᡂ“>="ᡈ“<="ÝÞ஺᝞»ᑏᡂif(x==0.0),ß(Jᑨ)┯à0ᑖ஺⚪2E¬)WindowsNTḄ32áC++4âãsizeofḄ8voidFunc(charstr[100])(sizeof(str)=?Ivoid*p=malloc(100);sizeof(p)=?uEsizeof(str)=4sizeof(p)=4ᒈ᪆:

39Func(charstr[100])_ᦪ0ᦪäj)_ᦪÝ'§ᙠ_ᦪåᑁᦪäᜫæ#mçḄᑁèééêZ[ᢣ┐PᙠᜫæᐸᑁèḄN§ëìᜫæ#ᐸᱯឋX¬jïðஹïñÆijX¬òᦋ஺ᦪäḄmó᝞E(1)ᦪäᢣôZËᦪõö᪀Ëᦪõö᪀øᦪäPù᝞Echarstr[10];cout<?@|least=MlN(*p++,b);AB^defineMlN(A,B)((A)<=(B)?(A):(B))

40MIN(*p++,b):C<'ḄDEᵨᒈ᪆:("☢⚪I⌕ὃL☢ὅN'OPḄQᵨ'OPRSTUVWXYᦪḄZ[\]^_`a]Yᦪb'OPcdecḄ“,ᦪ”fa]gḄ,ᦪᙠ'ijḄ9᎛N“,ᦪ”lmḄ]!N!Ḅnᣚ஺pqᕒN'OPḄQᵨ⌕stuᱯw⌕xy+"z⚪(1){|ᙢ~'OPcḄ“,ᦪ”᦮"'ᵨᵨdedᩭ஺ᡠSᙢAB#defineMIN(A,B)(A)<=(B)?(A):(B)#defineMlN(A,B)(A<=B?A:B)ᑨ0ᑖ(2)■'ḄDEᵨ஺'OP#defineMIN(A,B)((A)<=(B)?(A):(B))NMlN(*p++,b)ḄEᵨ]((*p++)<=(b)?(*p++)(*p++))("⊤:C᪗%ᜮᦻ±ᨵVWSḄ᪀@|#ifndef__INCvxWorksh

41#define_INCvxWorksh#ifdef_cplusplusextern"C"{#endif/*...*/#ifdef_cplusplus)#endif#endif/*_INCvxWorksh*/ABᜮᦻ±cḄ¢·'#ifndef_INCvxWorksh#define_INCvxWorksh#endifḄEᵨ]■©¸¹ºᵨ஺E!»☢ᔣN½Ḅ¾¿C++ÀᢝYᦪ¸ÂbÃp¾¿CᑣaÀᢝ஺Yᦪ©C++¢·ᙠsymbolÅcḄÆÇC¾¿ḄaÈ஺É᝞ᎷÌÍ"YᦪḄÎÏ|voidfoo(intx,inty);Yᦪ©C¢·ᘤ¢·ᙠsymbolÅcḄÆ_f஺஺bC++¢·ᘤᑣ:C<Ñ_foo_int_intVḄÆ஺_foo_int_int(᪵ḄÆᒹÔÕYᦪÆYᦪ,ᦪᦪÖ×VÏØÙC++Ú]ὃ(»ÛᑴᩭTUYᦪ¸ÂḄ஺ÕTUCC++ḄÝᔠ¢p,C++ßàÕCáâãᣚᢣOäåextern"C"ᩭAæÆᓛèz⚪Yᦪéêëìextern"C"ᑣ¢·ᘤÚ:ᢥ᯿C¾¿Ḅï~Yᦪ¢·_f஺஺(᪵C¾¿cÚRSðᵨC++ḄYᦪÕ஺

42⚪5¢ᑏ!"YᦪEᵨ]ñ!"charòᡂḄäôõö÷øn"஺ù᝞Îᩭ]“abcdefghi"᝞n=2,ø]"hiabcdefgh"Yᦪᜮ](᪵Ḅ//pStr]ᢣᔣS!ûḄäôḄᢣ┐//steps]⌕üøýḄnvoidLoopMove(char*pStr,intsteps)(//þÿᐙ…|1:voidLoopMove(char*pStr,intsteps)(intn=strlen(pStr)-steps;chartmp[MAX_LEN];strcpy(tmp,pStr+n);strcpy(tmp+steps,pStr);*(tmp+strlen(pStr))=";strcpy(pStr,tmp);2voidLoopMove(char*pStr,intsteps)(intn=strlen(pStr)-steps;chartmp[MAX_LEN];memcpy(tmp,pStr+n,steps);memcpy(pStr+steps,pStr,n);memcpy(pStr,tmp,steps);)ᒈ᪆⚪⌕ὃ☢ὅ᪗ᦪḄᙠ◤⌕Ḅ"᎛$ᵨ

43ᦪ&'(ᜧ*+ᓄ-.ᑏḄ012஺ᨬ⚣678ᵨḄᦪᒹ:(1)strcpy(2)memcpy(3)memset⚪6;?@᝞B⊤ᡭEFWAVᦻ>'〉HḄᦪIJ᪀LMWAVᦻ>ᜮO᪆WAV?@Ḅᔜ⚗RS஺WAVEᦻ>?@TU⊤VWᙢZ⁚ᦪI\ᑁ_ᙬᦪ]OOH4Char"RIFF"᪗`04H4int32ᦻ>a08H4Char"WAVE"᪗`OCH4Char"fmt"᪗`1OH4bcZ⁚(ef)文件14H2inti6?@\h头16H2inti6i⍝ᦪk᪵᳛(no᪵pᦪ)⊤qni⍝Ḅ18H2inti6rst1CH4int32uvw⚣ᦪIx〈t᳛20H2inti6ᦪIᙽḄ{᦮ᦪ(ᢥZ⁚~Ḅ)22H2n᪵pḄᦪIᦪ24H4CharᦪI᪗"data"28H4int32wᦪIḄa:WAVᦻ>?@fJ᪀WAVEFORMATtypedefstructtagWaveFormat(charcRiffFlag[4];UIN32nFileLen;charcWaveFlag[4];charcFmtFlag[4];charcTransition[4];

44UIN16nFormatTag;UIN16nChannels;UIN16nSamplesPerSec;UIN32nAvgBytesperSec;UIN16nBlockAlign;IIIN16nBitNumPerSample;charcDataFlag[4];UIN16nAudioLength;}WAVEFORMAT;ᎷWAVᦻ>ᑁ_sᙠᢣ┐bufferEḄᑁᓫᐗᑁᑣᑖ᪆ᦻ>?@Ḅṹ(+ᓫWAVEFORMATwaveFormat;memcpy(&waveFormat,buffer,sizeof(WAVEFORMAT));ibwaveFormatḄᡂᕒ&'ᱯfWAVᦻ>Ḅᔜ⚗?@RS஺ᒈ᪆:⚪6ὃ☢ὅLMᦪIJ᪀Ḅ¢£ᨵ¥¦Ḅ-§ὅ¨©F᦮ḄᦪIᡂᕒLMFJ᪀ᑭᵨᢣ┐\]«ᣚ&'memcpyஹmemset®ᦪᵨ©J᪀ᙢᙬ¯°J᪀Ḅ᦮±1஺²b⚪&'³☢ὅḄ-§¥¦´ᔲ¶·஺⚪7¸\StringḄ᪀⌼ᦪஹ᪆᪀ᦪº»¼ᦪ;<\StringḄ½]classString(public:String(constchar*str=NULL);//¾i᪀⌼ᦪString(constString&other);//¿À᪀⌼ᦪ~String(void);//᪆᪀ᦪ

45String&operate=(constString&other);II»¼ᦪprivate:char*m_data;//ᵨ©ÁZÂ)Ãľi᪀⌼ᦪString::String(constchar*str)(if(str==NULL)(m_data=newchar[1];//ᑖÅÆZÂÇÈᵭÊsJË᪗`''ḄÆ//ÎᑖÅm_data£ÏNULLᑨÑ*m_data='\0';)else(intlength=strlen(str);m_data=newchar[length+1];//Ò¢ÎNULLᑨÑᑣÓÔstrcpy(m_data,str);//StringḄ᪆᪀ᦪStringString(void)(delete[]m_data;//ᡈdeletem_data;//¿À᪀⌼ᦪString::String(constString&other)//ᑖÅÖᐭØᦪconst](intlength=strlen(other.m_data);m_data=newchar[length+1];//£ÏᑖÅm_data£ÏNULLᑨÑstrcpy(m_data,other.m_data);

46//»¼ᦪString&String::operate=(constString&other)//ᑖÅÖᐭØᦪconst](if(this==&other)//ᑖÅÙÇ»¼return*this;delete[]m_data;//ᑖÅÚs½ᨵḄᑁÛÜintlength=strlen(other.m_data);m_data=newchar[lengths-1];//ÎᑖÅm_datainiNULLᑨÑstrcpy(m_data,other.m_data);return*this;//᧡ᑖÅÞßpàḄ$ᵨ}ᒈ᪆¢âãäᙢ.ᑏString\Ḅ᪀⌼ᦪஹ¿À᪀⌼ᦪஹ»¼ᦪº᪆᪀ᦪḄ☢ὅåæ;¥ᐹᜓéC++êpëḄ60%'*ìᙠ\íᒹ:éᢣ┐\ᡂᕒî2m_data,H\íᒹ:ᢣ┐\ᡂᕒî2"Ff⌕ïðᐸ¿À᪀⌼ᦪஹ»¼ᦪº᪆᪀ᦪò´C++-ᕒḄêp⌕ôõ´ö÷fectiveC++øíᱯhù{Ḅᩩû஺üýþÿᱯḄᑖᑖḄ᪵ᐹᜓ60%ḄC++⚪8!staticconstᐵ#$%&'(Ḅ)ᵨ+,staticᐵ#$-.ᨵ0ᑡn)ᵨ(1)2ᦪ4ᑁstatic67Ḅ)ᵨ9:;2ᦪ4<=>auto67;67Ḅᑁ?@AᑖBCDEFᐸHᙠ0DJᵨKLMᢝDḄHO(2)ᙠPᙽᑁḄstaticᐰS67&APᙽᑁᡠᵨ2ᦪUVW<'APᙽ᜜ᐸY2ᦪUVO(3)ᙠPᙽᑁḄstatic2ᦪ@&ACPᙽᑁḄᐸY2ᦪJᵨ2ᦪḄZᵨ9A▲ᑴᙠ]^YḄPᙽᑁ;

47(4)ᙠ`Ḅstaticᡂᕒ67c>᦮ᡠeᨵfḄᡠᨵfg@ᨵChijO(5)ᙠ`Ḅstaticᡂᕒ2ᦪc>᦮ᡠeᨵ2ᦪḄᡂᕒ2ᦪᢣuᐸ:constᑣ⊤^ᐸCw2ᦪ<'ᦋḄᡂᕒ67O(5)f>Ḅᡂᕒ2ᦪᨵK᎛ᢣuᐸH:constZᐸH<:“H”஺¡᝞constclassAoperator*(constclassA&a1,constclassA&a2);operator*Ḅ£¤Cconstfg஺᝞¤<᪵Ḅ6᝱¦ṹ<¨©!┯classAa,b,c;(a*b)=c;//fa*bḄ£¤«H¬)(a*b)=cᯠ<¯ᔠ¨±ὅḄ|⊭ᨵ³´஺ᒈ᪆·¸ᔩº»»Ḅstaticconst¼ᯠᨵ½('ᡃ¿',Àº᝞¤@',1~2ÁÂÃÄᐵÅÅÆÆ஺⚪&ὃÈ☢ὅf±ÊËÌÍÎḄÏбÑ|Òஹ`ÒÂÔÕÖᐭᨵCuḄÍÎ×ÑÖÑ<&'fV⚪Ø!ᐰ☢Ḅ+,஺ᜧ(ᦪÚ@',!staticconstᐵ#$Ḅᑖ'஺

484.ᢈÝ⚪⚪1ᑏCC2ᦪᜐᳮᘤBig_endianḄᑣ0OLittle_endianḄ,ᑣ1+,intcheckCPU()((unionw(inta;charb;}c;c.a=1;return(c.b==1);))ᒈ᪆âᐭãäåæçὅè;fLittle-endianBig-endianPãéw+஺êᵨLittle-endianPãḄCPUf¬)ᦪḄ?ëìãíî$⁚ᑮñ$⁚oBig-endianPãf¬)ᦪḄ?ëìãíñ$⁚ᑮî$⁚஺¡᝞16bitòḄᦪ0x1234ᙠLittle-endianPãCPUᑁ?`Ḅ?ëìã(ᎷËíᙢᙬ0x4000æ}?ë):ᑁ?ᙢᙬ?ëᑁø0x40000x340x40010x12oᙠBig-endianPãCPUᑁ?`Ḅ?ëìãᑣ::ᑁ?ᙢᙬ?ëᑁø0x40000x120x40010x3432bitòḄᦪ0x12345678ᙠLittle-endianPãCPUᑁ?`Ḅ?ëìã(ᎷËíᙢᙬ0x4000æ}?ë):|ᑁ?ᙢᙬCëᑁø

490x40000x780x40010x560x40020x340x40030x12oᙠBig-endianPãCPUᑁ?`Ḅ?ëìãᑣ::ᑁ?ᙢᙬ?ëᑁø0x40000x120x40010x340x40020x560x40030x78ὶᔠ4unionḄ?ëüÊᡠᨵᡂᕒýíîᙢᙬæ}?ë☢ὅḄ+,ᑭᵨ;ᱯឋᙢCPUᑁᵨLittle-endianBig-endianᑏ஺᝞!"#$ᜩ&Ḅ()ᕒ஺+⚪2-ᑏ$.ᦪ011+2+3+...+nḄ2(Ꮇ56789:;᦮=>?ḄA)-intSum(intn)(return((long)1+n)*n/2;//ᡈreturn(11+n)*n/2;}ᒈ᪆-G⚪HIJKᨬ!ᓫḄᫀ#ᨬOḄᫀ஺P☢ḄᡈὅSGP☢ḄTUVWᓄ7YZ[“ᢚ^”ᐸᦔ᳛J7cd"ereturn(1I+n)*n/2fghintSum(intn)(longsum=0;

50for(inti=1;i<=n;i++)(sum+=i;)returnsum;}ᡠj()ᕒk◤⌕noᙢpᦪqrstᵨᙠ()vwx஺yGz{-ᢥ2}⌴ᕡḼp$ᦪ}⌴$.ᦪ.ᦪeᦈḄ2Ḅ$஺᝞.ᦪᦋᦪᦋ>2ᢝ7>஺ᢥᵨ}⌴ᕡḼp$ᦪ}⌴$.ᦪ.ᦪeᦈḄ2Ḅᑁᙢᙬ72Ḅ஺᝞.ᦪᦋᦪᵨṹxḄ2Jᦋ>஺7YᙠC/C++xᙠjava.ᦪᵨ}2ᵨ.ᦪḄ᎛}⌴ḄḄᵨC/C++}⌴ᢣ┐$⍝ᳮᙠ.ᦪxᦋ>ᵨ£78ᦋ>ᵨᡠᢣᔣḄ.¥¦☢+⚪4ஹSQL¨⚪SELECT*FROMTABLESELECT*FROMTABLEWHERENAMELIKE'%%'ANDADDRLIKE'%%'AND(1_ADDRLIKE'%%'OR2_ADDRLIKE'%%'OR3_ADDRLIKE'%%'OR4_ADDRLIKE'%%')Ḅ©ª6¦«7¬-®ὅ©ªᐰ°±ὅᨵ³´µ¶©ª7-NAME=nullᡈADDR=nullᡈ1_ADDRLIKE2_ADDR3_ADDR4_ADDRᐸ$¦null.®ὅ©ªᡠᨵ·¸±ὅH©ªNAMEADDRx¹NullḄ·¸஺5ஹSQL¨⚪⊤6᪀-

511ஹ⊤¼-g_cardapply½¾¿½¾¼/À=/;ÁÂ-g_applynovarchar8Ã//ᵭÅᓫÆ¿ᐵȽÂg_applydatebigint8Ã//ᵭÅÉÊg_statevarchar2Ã//ᵭÅË᝱2ஹ⊤¼-g_cardapplydetail½¾¿½¾¼/À=/;ÁÂ-g_applynovarchar8Ã//ᵭÅᓫÆ¿ᐵȽÂg_namevarchar30ÃIIᵭÅÍμg_idcardvarchar18Ã//ᵭÅÍ£ÏÐÆg_statevarchar2Ã//ᵭÅË᝱ᐸxÑ⊤Ḅᐵὶ½¾¦ᵭÅᓫÆ஺⚪Ó-1ஹÔÕ£ÏÐÆṹ¦440401430103082ḄᵭÅÉÊselectA.g_applydatefromg_cardapplyAinnerjoing_cardapplydetailBonA.g_applyno=B.g_applynowhereB.g_idCard='440401430103082,2ஹÔÕ¬$£ÏÐÆṹᨵÑᩩj×·¸Ḅ£ÏÐÆṹØ·¸ᦪselectg_idCard,count*asCntfromg_cardapplydetailgroupbyg_idcardhavingcount*>13ஹp£ÏÐÆṹ¦440401430103082Ḅ·¸ᙠÑ⊤xḄᵭÅË᝱ᙳᦋ¦07updateg_cardapplydetailsetg_state='07'whereg_idcard='440401430103082,updateAsetg_state='07

52fromg_cardapplyAinnerjoing_cardapplydetailBonA.g_applyno=B.g_applynowhereB.g_idcard='440401430103082,4ஹᑤ◀g_cardapplydetail⊤xᡠᨵÎÜḄ·¸deletefromg_cardapplydetailwhereg_namelike'ÜÞ'3ஹp£ÏÐÆṹ¦440401430103082Ḅ·¸ᙠÑ⊤xḄᵭÅË᝱ᙳᦋ¦07updateg_cardapplydetailsetg_state='07'whereg_idcard='440401430103082,updateAsetg_state='07'fromg_cardapplyAinnerjoing_cardapplydetailBonA.g_applyno=B.g_applynowhereB.g_idcard='440401430103082,5ஹSQL¨⚪-/*Selectg_cardapply.g_applydateFromg_cardapply,g_cardapplydetailWhereg_cardapply.g_applyno=g_cardapplydetail.g_applynoAndg_cardapplydetail.g_idcard='440401430103082,*//*Select*From(selectcount(*)g_count,g_idcardFromg_cardapplydetailGroupbyg_idcard)aWherea.g_count>=2*//*Updateg_cardapplysetg_state='07'

53whereg_applynoin(selectdistinctg_applynofromg_cardapplydetailwhereg_idcard='440401430103082')updateg_cardapplydetailsetg_state='07'whereg_idcard='440401430103082,*//*Deletefromg_cardapplydetailWhereg_namelike'ÜÞ'*/à:á+PS:ᏔGFãḄäåᐜç$Pèéêëì⍝☢+⚪4.InC++,there'refourtypeofCastingOperators,pleaseenumerateandexplainthemespeciallythedifference.᪆-C++À=íᣚ¨⚪ᫀ-reinterpret_cast,static_cast,const_cast,dynamic_caststatic_castᦪᑴíᣚdynamic_castᵨG᡻ñᔣPíᣚᙠòóôḄíᣚconst_castVᣵconstreinterpret_castᵨG᡻ñö7÷ᐰḄorimplmentation_dependentÀ=íᣚ7jPṹᨵø[¨⚪᝞«ᦋ#include#includeusingnamespacestd;voidprint(vector);intmain()

54vectorarray;array.push_back(1);array.push_back(6);array.push_back(6);array.push_back(3);//ᑤ◀arrayᦪùxᡠᨵḄ6vector"iteratoritor;vector::iteratoritor2;itor=array.begin();for(itor=array.begin();itor!=array.end();)(if(6==*itor)(itor2=itor;array.erase(itor2);)itor++;)print(array);return0;)voidprint(vectorv)(cout<<"nvectorsizeis:"<"iteratorp=v.begin();)ᡃḄᫀûᘤ¨⚪Hᑤ◀ý$6,j±ûᘤ#ᜫᦔ7ᑤ◀

55±Ḅᐗ஺ᡃ⍝ᦋvoidprint(constvector&);intmain()(vectorarray;array.push_back(1);array.push_back(6);array.push_back(6);array.push_back(3);//ᑤ◀arrayᦪᡠᨵḄ6array.erase(remove(array.begin(),array.end(),6),array.end());print(array);return0;)voidprint(constvector&v){cout<<"nvectorsizeis:"<(cout,""));)#include#includeusingnamespacestd;intmain()(vectorarray;array.push_back(1);

56array.push_back(6);array.push_back(6);array.push_back(6);array.push_back(6);array.push_back(6);array.push_back(3);array.push_back(9);array.push_back(8);array.push_back(5);//ɾ³ýarrayÊýxeÖÐËuÓеÄ6vector::iteratoritor;itor=array.begin();for(itor=array.begin();itor!=array.end();++itor)(if(6==*itor)(itor=array.erase(itor);--itor;))cout<<"vectorsizeis:"<

57ᫀ᡻itor=array.erase(itor);itor!"#ᑤ◀Ḅᦪ☢Ḅᦪ%&'()ᡠ*ᑤ◀+,(-6ᢣ┐ᢣᔣ,2-6,ᯠᙠᩭ-itor++,ᢣ┐4ᢣᔣarray.end()+567-₝91663array.end()//ᨬ;<ᢣ┐itorᢣᔣ,(-6=163array.end()//ᑤ◀,(-6ᢣᔣ,>-6163array.end()//itor++4ᢣᔣ3+ᡠ*@ᑤ◀2.Whatarethreewaysinwhichathreadcanenterthewaitingstate?CPUAB5CᐜEFGḄthread,HᐜthreadIᐭwaitingKLḄthreadMNOPᡈὅSTIᐭwaitingUᨵV☢WXY☢WZ[ᡃ\]ᢈ_`abcḄ☢WXY☢WZ[ᐜdᡃeY☢WḄfgᔳ஺ijk+2-m⚪4@oᑭqᐵ+஺1osV⌕u;v(wxy஺2xysV⌕z{6஺0m,(-m⚪Ḅ"hr(ᡈὁ~)ᕣᕣᓽ6ᢈ_qᐵhrᨵḄ["(-᝞iᕖhr6ᙠḄxy@ᕆ஺-᎛6*¡ᡃᙠ¢xy£@ᕆn(n>=1)c((¤ᯠ6ᨵ#¥Ḅ¦§@¨d©vª⌕«SᵨḄ஺ᨵ(ᡃ4ᙠ-m⚪vᔛ+ᜧ°ᡃ±xy²᛻U┯4ᡃµ¶·¸i1c[hr¹º"m(m>=2)cᕣᕣ[+஺⌕⍝ᢈ_☢W%qᐵ+Hr☢W"2⌱1,ᙠiwḄ¼vᡃ!@ἌἩ§¿µÀÁᡈÂᑮ+ᐸFḄ`a஺)

58m,>-m⚪Ḅ"ᢈ_Å஺6⌕Æ⍝6Çf¶qÈÉᖪËaÌ஺(Í⌕"ᖪËaÌ஺ᙠ☢ÎÏÈÐ☢ᐹÒ`a§Ó6Ô៉ḄᙢÐ⌕d஺ᨬ4"@×ØÙWᡈvÚÛsᵨᵨÜdḄᜧwᳮÞ%(᪵àá@âᜧ[§6ã¤ᑭ஺ᙠ-m⚪vᡃäᔛq°Ḅåᨵ(-ᡃâ±Ḅæ)çs#¥âᜧËèᳮÞväâᨵCéêᢈ_Å(ë["gameover஺⌕⍝ᙠᐸxyḄvÚêÙWᡃ%@ᙠìὺὅØNGᑖ஺ïdᡃe☢WðñḄfgᔳ஺¤ᡃḄòè"⚪5ᑖ஺ó6ôN⚪âõᓟ÷⌕ÀÁøᯠ6Ḅ§¿äôN஺!⌕ùᢝᡃçsñᨵὊ¹âüýᙠ*Ḅ`aä"Ḅᔠaὅ஺⚪(Í⌕¶ÿ⊤Ḅ᝱ᨵᶧᡈᓱ,☢Ḅᑖ!"#$%&'(Ḅ)*+,☢,-%Ḅ./01஺ᨵ34ᨵ156ᩭ☢⚪9ᨵ:ᐰ஺k,<=>᝱='@'A⍝ḄCDEFGᡃIG'ᢈKLḄMᑖ஺NᩭOᑭQᐭSTUNᩭQV=WᡂGY⌕[⁐஺ᦻ^_%ᨵḄ`aᙠcde஺f%ᡂg☢⚪1.j⊤&ᦪlḄmnᙠopq2.rᑏtj⊤᣸vḄ3wxy஺z{|}~%⌱ᵨ᪵Ḅyq3.rᑏtᦪl᣸vḄ3wxy஺z{|}~%⌱ᵨ᪵Ḅyq4.arᑏ0)tstrstr()ᦪg0Ḅṹ஺5.rᑏ"Ḅv⌕ᓄஹᓄ஺6.ᙠj⊤p᝞j)q7.IḄ35xyḄᙠ35᦮ᦪlp஺8.ᑏ35ᦪ¡¢£ᔲ£᦮ᦪ᝞¥£¦§ᐸ᦮ᦪ©஺(ᡈὅ¬᪵®ᵨ4¯ṹrᑏ35°ᑮ²᦮Ḅᦪq)9.I35ᦪᩭ´35Ḅᡠᨵ᣸ᑡ஺10.arᑏtmalloc()ᑁᑖ¸ᦪg03᪵Ḅṹ஺

5911.I35ᦪᩭ¹ᑴ»5A&B஺AḄN¼5⁚&BḄ¾¼5⁚Y¿஺12.᪵rᑏ35v@35ᨵv᦮ᦪᦪlÀᑮÁÂ᪛Äq13.᪵°⚔ÆÇÈ⌲ÊᡭᓺÁÂ᪛ÍÎᦪÏqar஺14.᪵@35j⊤ᣵ5OvÑÒÓ£"vÔÕj⊤ḄÖ×ᩩÙὃ⇋j⊤ÜqÝ᜜¬3ஹᓫ⚗⌱⚪¬Ñᐳ12⚪â⚪2ᑖᐳ24ᑖÜ1.ã☢o35£C++Ḅ᪗åᦪÏLæqÑDÜA.intB.charC.boolD.real2.breakᐵèᙠo3wéyÍ᪀Ä0ëᵨqÑCA.foréìB.switchéìC.iféìD.whileéì3.LḄíîïᨵ¼wqÑBÜA.»wB.ðwC.ñwD.òw4.externᐵèḄóᵨ£}~qÑDA.ô{᜜Æj)B.ô{᜜ÆᜮᦻÙöᵨC.ô{ëᵨ᡽øC++éìD.ô{᜜ÆᡂᕒᦪஹᡂᕒᦪÏ஺5.CûᦪstrstrḄg0£qAA.¢üýB.þx²C.ÿD.6.stl::dequeᦪAA.᝱ᦪB.⊤C.ᚮ᪘D.᪛7.STLᨵ☢Ḅ!"#$DA.KMP%&B.ᢚ(%&C.ᑈ*᣸,D.-.᣸,

608./ᙠᨬ-2ᨬ3ᵨḄ᣸,#$A5A.-.᣸,B.ᑈ*᣸,C.⌱7᣸,D.᜜9᣸,9.Win32Ḅ:;Ḅ!<ᐜ>ᨬ?CA.THREAD_PRIORITY_HIGHEST?<ᐜ>B.THREAD_PRIORITY_IDLEᨬ@<ᐜ>,BᙠCDEFG᡻IC.THREAD_PRIORITY_TIME_CRITlCALᨬ?<ᐜ>D.THREAD_PRIORITY_ABOVE_NORMAL?JK3<ᐜ>10.☢LM⌱⚗OP!MQWinMainRᦪḄSᦪD5A.HINSTANCEB.INTC.LPSTRD.WPARAM11.VCḄUVᘤOPX#newYZḄ[/B5++A.VirtualAllocB.HeapAllocC.GlobalAllocD.AlIocateUserPhysicalPages12.☢!\C++Sὃ^ᨬ_CA.`ThinkinC++aB.`bᐭdeMFCaC.`C++PrimeraD.`EffectiveC++a13.fgᵨWindowsAPIRᦪInvalidateRect,hijklmAA.WM_PAINTB.WM_CREATEC.WM_NCHITTESTD.WM_SETFOCUS14.ᐵJvirtualvoidDraw=0,☢o$pqḄᨵrMC1stuRᦪv525sᙠwxsḄOQy[/v535wxsḄQz[{ᓄv54᝞~M⌕MADTP⌕[/ᐸOḄᡠᨵtuRᦪ┯5//zQ[/PkḄM.A.1B.2C.3D.4ஹQw⚗⌱7⚪ᐳ6⚪P⚪3ᑖPᐳ18ᑖP⌱ஹ┯⌱ஹ⌱ᙳQ

61ᑖ)1.vector-iterator¡☢!¢X#(ACD)A.++B.>>C.*(¤¥)D.==2.CreateFile()Ḅ¦yᨵ!rM(AB)A.ᡭ¨ᦻªB.«¬ᦻªC.ᦻªᦋ¯D.ᑤ◀ᦻª3.☢!¢²³(HANDLE)?(ABCD)A.HINSTANCE[{²³B.HWND´µ²³C.HDC¶ᜓ¸¹º²³D.HFONT»²³4.☢!¢QOpenGL᪗½r¾ᐗÀḄÁᑴÃÄ(A)A.GL_FOGB.GL_LINE_STRIPC.GL_POINTSD.GL_TRIANGLE_FAN5.☢!¢X#QyÅ(ABD)A.ÆᵨÇX#“:"B.vᡂᕒX#C.ᢣ┐ᡂᕒX#D.ÏÐX#“”6.☢!¢ÒÓSÔ¡ÕÖ×ØMC++UVᘤḄ¨Ù()A.BillGatesB.StanleyLippmanC.AndersonHejIsbergD.BjarneStroustrup7.o$pqḄ(ABC)A.ᜮᦻªOḄifndef/define/endif¡■ÜÝᜮᦻªÅÞßᵨ஺B.vJ#include,UVᘤâ᪗½ãä¨åæçfilename.hvJ#include"filename.h",UVᘤâᵨᡝḄéãä¨åæçfilename.hC.C++êëìᢝRᦪPCêëQìᢝRᦪ஺RᦪÅC++UVᙠOḄ¯ÔCêëḄQî஺Ꮇ¶ðMRᦪḄñvoidfoo(intx,inty);ÝRᦪÅCUVᘤUVᙠOḄ¯_foo,òC++UVᘤᑣijkô_foo_int_intḄ¯஺C++õö¡C

62÷øᣚᢣwºextern11C"ᩭûü¯ᓛþÿ⚪஺D.fopenᦪᦻᐭᑁ஺//┯,fopen᦮ᦻᐭᑁஹ⚪(ᐳ8⚪⚪3ᑖᐳ24ᑖ)1.#ᜧ%&320X192,'⁐&ᮞ*+,⁐Ḅ.ᜓ0ᐵ23ᨵ_______6⁚஺᝞9:23'⁐&242;<⁐ᑣ>Ḅᜧ%ᨵ________6⁚஺2.WindowsAPIḄ?ᦻ@A____windowsBᵨDEFG____஺3.HIJKLḄMᦪ##asin()____NHIOPᦪQRSḄMᦪ__fabs()____NHIOPᦪnTUḄMᦪ__p஺w()_____NVOPᦪWᓄ&6YZḄMᦪ___fcvt()_____஺4.᝞9i[\5,]^(++i)-ḄabS__6__஺5.APILoadBitmap()Ḅcde__ᢣgḄhᙽjᡈBᵨDElm##?n23ᦪoᑮᑁ஺6.newj__deleteRBmallocj#freeRBqrst#ud__vwxᵨ஺callocḄcd##&ᦪyz᝱ᑖ|ᑁߟߟreallocḄcd—ᦋᨵᑁḄᜧ%—஺7.SendMessagejPostMessageᔣ〈#SendMessage__V#ᩩ〈ᑮᢣgGᓽᜐᳮߟPostMessage—V#ᩩᢗ⌴ᑮᢣgGḄᑡu◤⌕ᓽᜐᳮ_O8.ᢣgᙊஹஹᦪḄᙊḄPconstintnCount=12;constdoubledOrgX=5.0,dOrgY=3.0;constdoubledRadius=2.0;for(inti=0;i63ஹᑨ¦⚪(ᐳ12⚪⚪2ᑖᐳ24ᑖ)1.#§¨©⌕ᨵ#uª«ᦪḄ᪀⌼ᦪ஺┯2.®udᑏ#°Ḅ᪀⌼ᦪ஺R3.§±☢ᡠᨵḄᦪ´°ᦪµ¶´°§஺┯4.constᡂᕒᦪR\¹º»§Ḅᦪoᡂᕒud¼½ᑏ¾¿஺R5.ᦪ?ªÀÁSḄ«ᦪ¨©2\uªÀÁSḄ«ᦪsÂ஺R6.char*p="Test";p[0]='R';┯7.cout<<"Test";R8.stl::listuÃᢝÅÆÇÈÉÊᘤ஺R9.stl::vectorḄᦔ᳛Îstl::listÏ஺┯10.VCjVC++#bÐVC++#ÑÎC++ÒÓ#ÔḄÕÖ஺┯11.ᳮ×newjmalloc⌼ᡂḄᑁØ☄ᵫ¾¿ÛÜbᦈ஺┯12.ᙠC++?structjclassḄßàáᜧᡠâeÕãudxᵨ஺Räஹåæ⚪(ᐳ3⚪⚪5ᑖᐳ15ᑖ)1.çåæPeekMessagejGetMessageḄà஺èPeekmessagejGetmessageᔣÛÜḄᑡ?néêᦪḄuëᙠ

64uᑮḄµ᎛íGetmessage()ᔣᑡ?nuᑮᑣDEḄîïDðOS(¾¿ÛÜ)ᢞò[ᑮᨵᔠ〉Ḅµ¶ab;íᵨPeekmessage()ᙠᑡ?nuᑮ,ᑣDEnéOSöᑴᩗù½#úµt஺û᜜,ᙠᜐᳮḄµ᎛,GetMessag()Veᑡ?ᑤ◀PeekMessage஺ÿᨬᦪwRemoveMsgᩭᔲᶇᙠᑡ஺2.ᑡᡠ⍝ḄᙠWindowsSDK!"#$%&'(Ḅ)*஺+:-.ᵨSetTimer0ᦪ12%&ᘤ,SetTimerḄ0ᦪ56᝞89UINT_PTRSetTimer(HWNDhWnd,UINT_PTRnlDEvent,UINTu:apse,TlMERPROCIpTimerFunc3.;<ᡠ⍝ḄconstḄᔜ>ᵨ*஺

65+9const@AconstB⛲DḄᦪEᡂᕒconstB⛲ᢣ┐constJᵨᙠ0ᦪKLconstJᵨᙠDᡂᕒ0ᦪMஹOP⚪9(ᐳ3⚪"T1U⚪7ᑖ"T2U⚪14ᑖ"T3U⚪24ᑖ)1.XYZᔊ\]᪛஺structNode(Node*Parent;Node*Left,*Right;)_voidThrough(Node*Root)()2.\ᑖ*`a஺intDicFind(int*Array,intCount,intValue)3.ᑏcdeDStringḄfg᪀⌼0ᦪஹ᪆᪀0ᦪklmnopqd஺rDStringḄ56s9classString(public:String(constchar*pStr=NULL);//fg᪀⌼0ᦪ

66~String(void);//᪆᪀0ᦪString&operate=(constString&Source);//lmnopqdprivate:char*m_pData;//ᢣᔣcdeḄᢣ┐)_uᜩ8ᓤḄx⍝☢z⚪1o{|ᦪḄ3})~ᦪ"~})ᦪ"⍝{|ᦪḄ3})k4})ᵨZ09ᓝᦪc஺OᑏP{Ḅ|ᦪ஺2஺1,2,3,4,5Mᦪxᦪ"ᑡḄᡠᨵᔠ஺publicstaticintgetAge(){intage;intthird;intfourth;for(inti=11;true;i++){if(i<200){third=(int)Math.pow(i,3);fourth=(int)Math.pow(i,4);if(getLength(third,fourth)==10){age=i;break;))returnage;

67publicstaticintgetLength(intargsl,intargs2){Stringstr1=String.valueOf(argsl);Stringstr2=String.valueOf(args2);Stringstr=str1+str2;if(str.length()!=10){return-1;)int[]intarray=newint[10];for(inti=0;i

68publicclassA{//http://community.csdn.net/Expert/topic/4667/4667929.xml?temp=.57922publicstaticvoidmain(String[]args){Stringt;String[]s=newString[5];intj=s.length;for(inti=0;i

69System.out.prin11n(j+""+i);)))!Ḅ⚪"1,2,3,4,5Mᦪxᦪ,ᑡḄᡠᨵᔠ"ᡠlḄᦪcJqᙠ☢஺T\⚪Jᦋs9for(inti=1;i<6;i++){for(intj=1_j<6;j++){if(¡=j){break;}else{System.out.println(i+""+j);System.out.println(j+""+i);)))publicclassB{publicstaticvoidmain(String[]args){for(inti=1;i<6;i++){intt=i;for(inta=0;a<5;a++){intc=a+1;if(c==t){continue;}else{System.out.println(t*10+c);

70System.out.println();))T\⚪publicclassTest(publicstaticvoidmain(String[]args)(int[][]a=newint[5][];for(inti=0;i0;i--)(for(intj=i-1;j>0;j--)(System.out.print(i);System.out.print(j+"");)System.out.print("");publicclassTest{

71publicstaticintgetDigits(Stringstr){int[]intarr=newint[10];for(inti=0;i<10;i++)intarr[i]=0;for(inti=0;i=10000)continue;if(fourth<100000||fourth>=1000000)continue;Stringstr=String.valueOf(third)+String.valueOf(fourth);if(getDigits(str)==10)returnage;)return0;))T\⍝⚪classCombine

72publicstaticvoidmain(String[]args)(for(inti=1;i<5;i++)(for(intj=i+1;jv6;j++){System.out.prin11n(i+""+j);System.out.prin11n(j+""+i);)))publicclassAge(publicstaticvoidmain(String[]args)(Stringstr1=null;Stringstr2=null;Stringstr3=null;Stringstr4="0123456789";for(inti=10;i<50;i++)(str1=Integer.toString(i*i*i);str2=Integer.toString(i*i*i*i);str3=str1+str2;if((str1.length()==4)&&(str2.length()==6))(booleanflag=true;for(intj=0;j<10;j++)if(str3.indexOf(str4.charAt(j))==-1)flag=false;if(flag){System.out.prin11n(">>>"+i);System.out.println(str3);)

73)£¤¥~§¨©⍝ªz⚪silver6|04~ᨴ"200609:48¬᪵®ᵨ4¯°ṹOᑏ²cdeᑮ´᦮¶Ḅ·ᣚ0ᦪ¹ᡃḄ)*"»¼½£4¯¾*_#!~longatol(char*str)(charc=*str;if(!isdigit(c))str++;for(longvalue=0;*str!=value=value*10+(*str-'O'),str++);returnc==?-value:value;)voidstol(constchar*des,long&num)(for(intbase=1,i=0;des[i]!=base=10,++i){num*=base;num+=(int)(des[i]-'0');))num⌕ÅÆᓄs0voidstol(constchar*des,long&num)(for(inti=num=0;des[i]!=i++){num*=10;num+=(int)(des[i]-'0');))voidstol(char*str,long&num)

74while(*str!=")(num=num*10+(*str-'0');str++;))voidstol(constchar*des,long&num)(charp=des[0];for(intb=1,pos=1,base=1;des[pos]!=b=10,++pos,base*=10){(num*=b)+=(int)(des[pos]-'0');)p==?(num*=-1):(num=(int)(des[0]-'0')*base+num);)ᦋ8ÈḄ§¨Ḅªz⚪ɹᡃ®ᵨ¯஺#includeusingnamespacestd;longstr2long(char*p,longxxx=0L)(return*p=="?xxx:str2long(p,xxx*10+(*p+++0-'0'));)intmain()(char*str="123456789",*p=str;cout<

75#include#includeusingnamespacestd;longToLong(string&s){longI;istringstreamiss(s);iss>>I;returnI;)intmain(intargc,_TCHAR*argv[])(strings="-12356";cout<usingnamespacestd;longstr2long(char*p,longxxx=0L,boolIsPositive=true)(return*p=="?(lsPositive?xxx:xxx*(-1)):(*p=='-'?str2long(++p,0L,false):str2long(p,xxx*10+*p+++0-'0',lsPositive));)intmain(){char*str="-123456789",*p=str;cout<

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

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

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