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

正文內(nèi)容

c語(yǔ)言選修上機(jī)考試復(fù)習(xí)題-資料下載頁(yè)

2025-06-07 13:33本頁(yè)面
  

【正文】 ,9,......位置的字符復(fù)制到字符串2并輸出。例如,當(dāng)字符串1為This Is a c Program,則字符串2為hsI rgainclude include void fun(char str1[],char str2[]) { /***********begin***********/ /************end************/ } main() { char str1[80]=This Is a c Program,str2[80]。 system(“CLS”)。 printf(String is: %s\n,str1)。 fun(str1,str2)。 printf(Result is: %s\n,str2)。 }在考生文件夾下,:將字符串中的所有字符ch(ch中存放一小寫(xiě)字母)都替換成相應(yīng)的大寫(xiě)字母,其余的不變;并輸出。例如,當(dāng)字符串為This Is a c Program,ch的值為’a’時(shí),輸出結(jié)果應(yīng)為:This Is A c ProgrAminclude include void fun(char str1[],char ch) { /***********begin***********/ /************end************/ } main() { char str1[80]=This Is a c Program。 system(“CLS”)。 printf(String is: %s\n,str1)。 fun(str1,’a’)。 printf(Result is: %s\n,str1)。 }在考生文件夾下,:求一維數(shù)組a中所有元素的平均值。,請(qǐng)將計(jì)算結(jié)果存入變量av中。include include include define N 20 main() { int a[N]={1,20,8,14,7,12,2,19,19,15,13,14,20,10,16,20,7,6,12,12 }。 double av。 FILE *f。 /***********begin***********/ /************end************/ printf(Aver=%f\n,av)。 f=fopen(,w)。 fprintf(f,Average = %.2f\n,av)。 fclose(f)。 }在考生目錄下,:按下面的公式求s的近似值: 1 1 1 1 1 s = 1 + —— + —— + —— + —— + …… + ——— 2*2 3*3 4*4 5*5 n*n,n的值由鍵盤輸入。include include include double fun(int n) { /***********begin***********/ /************end************/ } main() { double s。 int n。 system(“CLS”)。 printf(Enter s:\n)。 scanf(%d,amp。n)。 s=fun(n)。 printf(s= %.3f\n,s)。
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1