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

正文內(nèi)容

江蘇二級c20xx秋考試試題-資料下載頁

2025-01-14 18:54本頁面
  

【正文】 turn 0。}int main(){ long k,n=20000,m=21000,j=0。 for(k=n。k=m。k++) { if(__(22)___) if(k%11==0) { if(j++%10==0) putchar(39。\n39。)。 printf(%ld ,k)。}else printf(error)。 }return 0。}15. 以下程序的功能是反轉(zhuǎn)一個字符串中單詞的順序。例如,將字符串“there is no try”中單詞順序反轉(zhuǎn)后變?yōu)椤皌ry no is there”。假定以空格作為單詞分隔符。include include include void reverseWords(char str1[], char str2[]){ int tokenPos, wReadPos, wEnd, writePos。 writePos =0。 /*tokenPos記錄向前掃描(從串尾到串首掃描)str1字符串時當(dāng)前被判斷字符的下標(biāo)*/ tokenPos=__(23)___。 while(tokenPos=0) { if(str1[tokenPos]== 39。 39。) { str2[writePos++]=str1[tokenPos]。 /*復(fù)制單詞之間的空格*/ } else { wEnd=tokenPos。 /*wEnd記錄str1字符串中被處理單詞的尾字符下標(biāo)*/ while(tokenPos=0amp。amp。str1[tokenPos]!= 39。 39。) /*向前掃描到空格為止*/ tokenPos。 wReadPos=__(24)___。 /*wReadPos記錄str1字符串中被處理單詞的首字符下標(biāo)*/ while(wReadPos=wEnd) str2[writePos++]=str1[wReadPos++]。} }str2[writePos]= __(25)___。 /*在str2數(shù)組中置字符串的終止符*/}int main(){ char *sentence= there is no try, *reverse。 reverse=(char *)malloc(strlen(__(26)___)+1)。 printf(%s\n,sentence)。 reverseWords(sentence,reverse)。 printf(%s\n, reverse)。 free(reverse)。 return 0。}1已知一個單向鏈表結(jié)點的數(shù)據(jù)結(jié)構(gòu)定義如下:typedef struct point{ int x。 struct point *next。}POT。函數(shù)creat的功能是:找出p指向的單向鏈表中數(shù)據(jù)值只出現(xiàn)一次的結(jié)點,將這些結(jié)點依次復(fù)制鏈接到q鏈表,函數(shù)返回q鏈表首結(jié)點的地址。POT *creat(POT *p){ POT *q=NULL,*qr,*p0, *p1, *p2。 int c。 p0=__(27)___。 /*p0指向p鏈表首結(jié)點*/ while(p0!=NULL) { c=0。 p1=p。 /*p1指向p鏈表首結(jié)點*/ while(p1!=NULL) /*依次將p1指向的每個結(jié)點中的數(shù)據(jù)與p0指向的結(jié)點中的數(shù)據(jù)做比較*/ { if(p1x==p0x) c++。 p1=__(28)___。} if(c==1) { /*將p0指向的結(jié)點中的數(shù)據(jù)復(fù)制到p2指向的結(jié)點,將p2指向的結(jié)點鏈入q鏈表*/ p2=(POT *)malloc(sizeof(POT))。 p2x=p0x。 if(q==NULL) q=qr=__(29)___。 else { qrnext=p2。 qr=p2。 }}p0=p0next。}qrnext=__(30)___。return q。}第 9 頁 共 9 頁
點擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1