freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

江蘇省計(jì)算機(jī)二級(jí)試題匯總(參考版)

2025-03-29 02:12本頁(yè)面
  

【正文】 若h1指向結(jié)點(diǎn)與h2指向結(jié)點(diǎn)的“指數(shù)”值不相同,則將其中“指數(shù)”值較大結(jié)點(diǎn)的“。Bind函數(shù)完成h1鏈表與h2鏈表中分別存儲(chǔ)的兩個(gè)多項(xiàng)式的合并操作,合并后的多項(xiàng)式保存到h3鏈表中,函數(shù)返回h3鏈表頭指針的值。}NODE。 /*系數(shù)*/int n 。 (10年秋17) 算法提示:Bind函數(shù)所在的程序采用單向鏈表存儲(chǔ)多項(xiàng)式,多項(xiàng)式的每一項(xiàng)分別存儲(chǔ)在鏈表的一個(gè)結(jié)點(diǎn)中。 return s。 } } p= pnext 。 else { rnext=p。 q=pnext。((pc)%2)) { if(s==p) s=q= pnext 。 while(p!=NULL) { if(((pi)%2)amp。 struct node *r。 struct node *t=NULL。 /* 存放一個(gè)字母的ASCII編號(hào) */ struct node *next。(09年秋17) 例如,若刪除前的s鏈表為:1 a2 b3 b4 c 0 s 則刪除厚的s鏈表為:2 b3 b4 c 0 s include struct node { int i。 return h1}fun函數(shù)的功能是刪除s指向的鏈表中滿足以下條件的結(jié)點(diǎn):該結(jié)點(diǎn)的編號(hào)值是奇數(shù)且存放的字母ASCII編碼值也為奇數(shù)(提示:a的ASCII編碼是97);將刪除的結(jié)點(diǎn)添加到t所指向的鏈表尾部。 else phnext=q。 s= (29) 。 snext }if(s!=NULL) { ph=p。s) { q=qnext。qamp。s!=NULL){while(qdata==sdataamp。 while(p!=NULLamp。 s=h2。 ph=NULL。 Sea_del函數(shù)的功能是:刪除h1指向的鏈表中首次出現(xiàn)的與h2指向的鏈表中數(shù)據(jù)完全匹配的若干個(gè)連續(xù)結(jié)點(diǎn),函數(shù)返回h1指向鏈表的頭指針。 Struct node *next。 count(head)。 WORD *head=0。i++) printf(%s: %d ,c[i].word,c[i].num)。 } for(i=0。 } } __________。 } if(i=m) {strcpy(c[m].word,hword)。 c[i].num++。im。 m++。 while(h) {if(m==0) {strcpy(c[0].word,hword)。 }c[6]={0}。 } void count(WORD *h) {struct {char word[20]。} } p2next=___________。 else {p2next=p1。 strcpy(________,a[i])。in。 int i。 }WORD。(09年春16) include include include typedef struct w {char word[20]。程序運(yùn)行時(shí)輸出結(jié)果為“red:1 green:2 blue:3”。函數(shù)WORD *create(char a[][20],int n)創(chuàng)建一個(gè)包含n個(gè)結(jié)點(diǎn)的單向鏈表,結(jié)點(diǎn)數(shù)據(jù)來(lái)自a指向的數(shù)組中存儲(chǔ)的n個(gè)單詞(字符串)。 }64,48 4, 3 解析:本題要注意的是FACT是結(jié)構(gòu)體類型,結(jié)構(gòu)體變量可以賦值給另一個(gè)結(jié)構(gòu)體變量fun1的作用是計(jì)算t3的m和z值并賦給s,=6*8=48,=4*6+5*8=64,=64,=48。 s=fun2(s)。 s=fun1(s1,s2)。 return t。 } =。 while(k=m%n) { m=n。 m=。 return t3。 =*。 }FACT。}以下程序運(yùn)算時(shí)輸出到屏幕的結(jié)果中第一行是 ,第二行是 。direction s={1,1},T={1,1},A={0,0},B={2,1}。 return d0。 d=**+**。 =。 =。int visible(direction s,direction A,direction B,direction C){ direction p1,p2。(10年春13)includetypedef struct { int x,y。}else puts(days is wrong!)。month,amp。days=365){month_day(year,days, (26) )。days=366||leap(year)==0amp。if(leap(year)==1amp。year,amp。printf(Input year and years!\n)。*day= (25) 。k++) yeardaytab[p][k+1] yearday=yeardaytab[p][k]。for(k=1。int tab[2][13]={{0,31,28,31,30,31,30,31,31,30,31,30,31},{0,31,29,31,30,31,30,31,31,30,31,30,31}}。return y。amp。includeint leap(int year){int y。試完善程序以達(dá)到要求的功能。}301 orange 100101 apple 200以下程序根據(jù)輸入的年份及該年中的第幾天,計(jì)算并輸出這一天的“年/月/日”。in。 sell[k]=xy。 if(k!=i) { xy=sell[i]。amp。jn。i++){k=i。for(i=0。void main(){int i,j,k,n=3。 /* 產(chǎn)品名稱*/ long je。(10年秋13)includetypedef struct { int dm。 puts(p3)。039。i) {p2[i+xy]=p2[i]。 } if(xy) for(i=y。} __________。 p1[i]=39。i=0。 int i,x=strlen(p1),y=strlen(p2)。039。 c[i]=c[i1]。i0。039。 k=______________。039。039。i=0。k=0。 c[n]=39。試完善程序以達(dá)到要求的功能。main函數(shù)中p1和p2數(shù)組分別存放被加數(shù)字符串和加數(shù)字符串,p3數(shù)組存放運(yùn)算結(jié)果字符串。}解析:函數(shù)參數(shù)為指向函數(shù)的指針,實(shí)參傳遞用函數(shù)名以下程序完成兩個(gè)長(zhǎng)正整數(shù)的加法運(yùn)算并輸出計(jì)算結(jié)果。 return x。 else a=x。 if(fabs(y)1e6||fabs(ba)1e6) break。 } do { x= (a+b)/2 。 if( f(a)*f(b)=0 ) { printf(“There is no root between %f and %f”, a,b)。(*p)(3,5)。(09年秋15)includeincludeInt (*p)(int int)。root函數(shù)采用二分法計(jì)算并返回方程f(x)=0在[a,b]內(nèi)的一個(gè)近似根,main函數(shù)調(diào)用root函數(shù)求方程cos(x)=0在[0,]內(nèi)的一個(gè)近似根。 elseprintf(“not found\n”)。 k=find_replace(line,substr1,substr2)。 char substr1[10]=”test”,substr2[10]=”actual”。} }return t。 strcpy(amp。s1[i],s3) i=i+strlen(s3)。 (24) 。 k++ } if(s2[k]==’\0’) { strcpy(temp,amp。s2[k]!=’\0’) { j++。 while (s1[j]==s2[k]amp。i++) { k=0。 for(i=0。 char temp[80]。若s1字符串中沒(méi)有出現(xiàn)s2字符串,則不作替換并使函數(shù)返回0。 printf(”\n”)。iN。 printf(“sorted:\n”)。 } }}void main(){ int a[N]={8,4,9,3,2,1,5},i。a[max]=a[ni1]。a[ni1]=t。 } if(max!=ni1) if(max==i) { t=a[min]。a[min]=a[i]。 else if(a[j]a[max]) max=j。jni。i++) n/2 { (22) 。 for(i=0。試完善程序以達(dá)到要求的功能。下列程序的功能是對(duì)a數(shù)組a[0]~a[n1]中存儲(chǔ)的n個(gè)整數(shù)從小到大排序。 printf(“\n%d”,x)。ix。x)。 int i=0,x=0。 } *x=j。i++) { if(i%2==0) continue。 for(i=0。}以下程序運(yùn)算時(shí)輸出到屏幕的結(jié)果中第一行是 ,第二行是 。i10。 fun(s,count)。 }}void main(){ char s[80]=” 1enterschar4543123564879ffgh”。*p=’9’)count[ (20) ]++。 while( (19) ) *p!=’\0’ { if (*p=’0’amp。試完善程序以達(dá)到要求的功能。 }以下程序的功能是:統(tǒng)計(jì)一個(gè)字符串中數(shù)字字符“0”到“9”各自出現(xiàn)的次數(shù),統(tǒng)計(jì)結(jié)果保存在數(shù)組count中。i++) printf(%d,a[i])。 for(i=1。i++) x=gcd(_________,a[i])。 a[0] for(i=1。 } void main() {int x,i,a[6]={12,56,48,32,16,24}。____________。 while(__________) r!=0 {r=a%b。試完善程序以達(dá)到要求的功能。i++) printf(%d,%d\n,a[i].x,a[i].y)。 for(i=0。 int i,n=5。pp[k]=t。 if(k!=i) {t=pp[i]。amp。jn。i++) {k=i。 for(i=0。 void fun(S pp[],int n) {int i,j,k。int y。 }以下程序運(yùn)行時(shí)輸出結(jié)果中第一行是________,第二行是________,第三行是________。 printf(%d\n,fun(s1,s2))。 return m。} *(a+m)=39。m++。)m++。 while(*(a+m)!=39。 }以下程序運(yùn)行時(shí)輸出結(jié)果中第一行是__________,第二行是__________。 } void main() {char line[]=one world,one dream.。 return 1+count(amp。\039。amp。 while(isalpha(s[i]))i++。\039。 4 (09年春11) include include int count(char s[]) {int i=0。 printf(\n%5d,n)。in。n)。 } void main() {int x,a[10],n,i。i++) if(x%i==0)p[j++]=i。 for(i=1。 }}以下程序運(yùn)行時(shí)輸出結(jié)果中第一行是__________,第二行是__________。*p2=t。
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1