11.static1)2)3)2.1)2)3)3.4.5.16.7.constructor8.O(n^2)9.floatxifif(x0.000001&&x-0.000001)10.InternetTcp/Ip////11.InternetIPARP(AddressResolutionProtocol)12.IP2IP13.M,N1NMC14.switch()switchintA[nSize]00intFunc(int*A,intnSize)A000()[],125100100151195C++x1y2z5number0=x=1000=y=500=z=203number=0;for(x=0;x=100;x++)for(y=0;y=50;y++)for(z=0;z=20;z++)if((x+2*y+5*z)==100)number++;coutnumberendl;100*50*20x+2y+5z=100x+2y=100-5zz=20x=100y=50(x+2y)=100(x+5z)zxz=0,x=100,98,96,...0z=1,x=95,93,...,1z=2,x=90,88,...,0z=3,x=85,83,...,1z=4,x=80,78,...,0......z=19,x=5,3,14z=20,x=0100+95+90+...+5+1(51+48)+(46+43)+(41+38)+(36+33)+(31+28)+(26+23)+(21+18)+(16+13)+(11+8)+(6+3)+1m0m/2+1=(m+2)/2m(m+2)/2number=0;for(intm=0;m=100;m+=5){number+=(m+2)/2;}coutnumberendl;,21,,----=+5#ifdefDEBUGintsimple();#endifintoptimize();......inafunction:{result=optimize();ASSERT(result==simple());},,,simple()6age,age#includestdio.h#includeconio.hstructstu{charname[20];charsex;intno;intage;structstu*next;}*linklist;structstu*creatlist(intn){inti;//hpsstructstu*h,*p,*s;h=(structstu*)malloc(sizeof(structstu));h-next=NULL;p=h;for(i=0;in;i++){7s=(structstu*)malloc(sizeof(structstu));p-next=s;printf(Pleaseinputtheinformationofthestudent:namesexnoage\n);scanf(%s%c%d%d,s-name,&s-sex,&s-no,&s-age);s-next=NULL;p=s;}printf(Createsuccessful!);return(h);}voiddeletelist(structstu*s,inta){structstu*p;while(s-age!=a){p=s;s=s-next;}if(s==NULL)printf(Therecordisnotexist.);else{p-next=s-next;printf(Deletesuccessful!);8}}voiddisplay(structstu*s){s=s-next;while(s!=NULL){printf(%s%c%d%d\n,s-name,s-sex,s-no,s-age);s=s-next;}}intmain(){structstu*s;intn,age;printf(Pleaseinputthelengthofseqlist:\n);scanf(%d,&n);s=creatlist(n);display(s);printf(Pleaseinputtheage:\n);scanf(%d,&age);deletelist(s,age);display(s);return0;9}2#includestdio.h#includeconio.hvoiduppers(char*s,char*us){for(;*s!='\0';s++,us++){if(*s='a'&&*s='z')*us=*s-32;else*us=*s;}*us='\0';}intmain(){char*s,*us;charss[20];printf(Pleaseinputastring:\n);scanf(%s,ss);10s=ss;uppers(s,us);printf(Theresultis:\n%s\n,us);getch();}31211232145254/***************************************************************1.Symmetry(121,35653)1esle0******************************************************************/unsignedcharSymmetry(longn){longi,temp;i=n;temp=0;while(i)//,{temp=temp*10+i%10;11i/=10;}return(temp==n);}/*---------------------------------------------------------------------------char*s01234----------------------------------------------------------------------------*/unsignedIsSymmetry(char*s){char*p=s;longnNumber=0;longn=0;longnTemp=0;12/**/if(*s==\'\\0\')return1;/**/while(*p!=\'\\0\'){/**/if(*p\'0\'||*p\'9\')return2;/**/if((*p-\'0\')(4294967295-(nNumber*10)))return4;nNumber=(*p-\'0\')+(nNumber*10);p++;}/**/n=nNumber;while(n)13{/**/if((n%10)(4294967295-(nTemp*10)))return3;nTemp=nTemp*10+n%10;n/=10;}/**/if(nNumber!=nTemp)return3;return0;}/*---------------------------------------------------------------------------char*s140123----------------------------------------------------------------------------*/unsignedIsSymmetry_2(char*s){char*p=s;intnLen=0;inti=0;/**/if(*s==\'\\0\')return1;/**/while(*p!=\'\\0\'){/**/if(*p\'0\'||*p\'9\')return2;nLen++;15p++;}/**/if(nLen%2==0)return4;/*1*/if(nLen==1)return0;/**/p=s;i=nLen/2-1;while(i){if(*(p+i)!=*(p+nLen-i-1))return3;i--;}return0;}162~2000.,intfindvalue[2000]={2};staticintfind=1;booladjust(intvalue){assert(value=2);if(value==2)returntrue;for(inti=0;i=find;i++){if(value%findvalue[i]==0)returnfalse;}findvalue[find++];returntrue;}171.A,B,C,DAbufB,C,DbufABCDAPV2.reverseABCDDCBA3.2007.03.3121001;ABCD2ALLCBMAC18CIPDIPX3AIPBICMPCUDPDSPX4MACA322B482C616IEEED616IEEE5ABCD6IEEE802.3uABCDFDDI197A1--12--23--34--45--56--67--78--8B1--22--13--64--45--56--37--78--8C1--32--63--14--45--56--27--78--8D8V.35V.24RTSABCDE9ABCDEFG10AB20CDEFGH11()ACTRL-PBCTRL-OCALT-PDALT-O12OSIABCD13CSMA/CDABCDMAC14STOREANDFORWARD21ABMACCCRCDE15ABCD16VLANABCD17A1B2C3D418SA22BS?CS?DDIRS*19ACONBCONCAUXDTELNET20ABCD21CIP626A255.255.255.0B255.255.255.128C255.255.255.192D255.255.255.2242210.110.12.29mask255.255.255.224IPA10.110.12.0B10.110.12.30C10.110.12.3123D10.110.12.3223ARPAIPBIPTCPCIPDIP24IPTTL1ABCD25NetWareARipBSapCGnsDArp26IPXA10B8C4D62427ADLCIPVCBDLCIPVCCDLCISVCDDLCISVC28INVERSEARPABCLMIDDLCI29PAPABCD30X.25AX.25BX.25CX.25IPDX.2531X.25AIP25BIPCIPX.25DIPX.2532ABCD33ARIPBICMPCIGRPDOSPF34RIPOSPFIGRPARIPBOSPFCIGRPD35ABC26D36OSPFIPABCDispisp37ripmetricA8B9C10D15E1638ISDNBRIA2B+DB30B+DCD39Aisdnpots1-answerBisdnpots2-answerCisdnanswer1Disdnanswer22740DDRAAccess-listBdialerin-bandCDialer-groupDDialer-list41*gtportnumberABCD42access-list4deny202.38.0.00.0.255.255access-list4permit202.38.160.10.0.0.255A202.38.0.0B202.38.0.0CIP202.38.0.0202.38.160.0DIP202.38.0.0202.38.160.043firewallenableaccess-listnormal101permitip202.38.0.00.0.0.25510.10.10.100.0.0.25528access-listnormal101denytcp202.38.0.00.0.0.25510.10.10.100.0.0.255gt1024access-listnormal101denyipanyanyinterfaceSerial0EnableIpaddress202