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

正文內(nèi)容

c語言考試——程序填空題(編輯修改稿)

2024-09-26 10:02 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 567” 。 for( i=0,j=strlen(str)1。 ④ 。 ⑤ ) { ch=str[i] 。 ⑥ 。 str[j]=ch。 } printf(“ %s\n” , str )。 } 用直接選擇排序法對(duì)數(shù)組中的 10 個(gè)整數(shù)按從小到大排序。 main() { void selectsort(int b[ ],int n)。 int a[ ]={36,12,45,79,34,5,26,51,18,66}。 int i。 ⑦ 。 for (i=0。 i=9。 i++) printf(%4d,a[i])。 } void selectsort(int b[ ],int n) { int i, j, k, temp。 for( i=0。 i ⑧ 。 i++) { k=i。 for( j=0。 j ⑨ 。 j++) if ( ⑩ ) k=j。 if ( k!=i ) { temp=b[i]。 b[i]=b[k]。 b[k]=temp。 } } } 1 程序最多從鍵盤輸入 99個(gè)字符 ,將字符送入數(shù)組 c 中,遇到空格轉(zhuǎn)換成字符 39。39。,遇到 39。\n39。程序結(jié)束。 include main() { int i。 char ch,c[100]。 for (i=0。___① ___。i++) { if ((ch=getchar())==39。\n39。) ___② ___。 if (ch==39。 39。) ___③ ___。 c[i]=ch。 } c[i]=39。\039。 puts(c)。 } 1 求 3 4 階矩陣中值最大的那個(gè)元素的值及其行、列號(hào) 。 include main ( ) { ① 。 for ( i = 0 。 i 3 。 i + + ) for ( j = 0 。 j 4 。 j ++ ) ② 。 max = a [ 0 ] [ 0 ] 。 row = colum = 0 。 for ( i = 0 。 i = 2 。 i ++ ) for ( j = 0 。 j =3 。 j ++ ) if ( ③ ) { max = a [ i ] [ j ] 。 row = i 。 colum = j 。 } printf ( “\n max = %d\n” , ④ ) 。 printf ( “ row = %d \n, colum = %d \n” , row , colum ) 。 } 1 編制復(fù)制文本文件命令 copy,其功能為 :將 。 include “ ” main() { FILE *fp1 , *fp2 。 char file1[12] , file2[12] 。 printf(enter name of file1:)。 ① 。 printf(enter name of file2:)。 scanf(%s,file2)。 if((fp1=fopen(file1,“ r” ))==NULL) { printf(“\nCannot open the source file!\n”)。 exit(0)。
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1