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

正文內容

全國計算機等級考試三級網絡技術南開上機100題(參考版)

2025-06-03 04:29本頁面
  

【正文】 { qw=a[i]/1000。i++)for(i=0。jsValue(){ int i,j,qw,bw,sw,gw。 請勿改動主函數main()、讀函數ReadDat()和寫函數writeDat()的內容。fclose(fp)。}void writeDat(void){}xx[i++])。ReadDat(void){writeDat()。printf(平均值=%.2f\n,totPjz)。printf(符合條件的正整數的個數=%d個\n,totCnt)。printf(=%d個\n,totNum)。CalValue()。 printf(!\007\n)。if(ReadDat()){i++)xx[i]=0。for(i=0。clrscr()。int i。else totPjz/=totCnt。if(totCnt==0) totPjz=0。totPjz+=xx[i]。iMAXNUM。void CalValue(void){int i,data。 /*平均值*/int ReadDat(void)。 /**/int totCnt=0。include include define MAXNUM 200int xx[MAXNUM]。 1331 m= 101,m*m= 10201,m*m*m= 1030301 m= 111,m*m= 12321,m*m*m= 1367631 ★☆題目26(整數統(tǒng)計運算題)(個數200)四位數字的正整數,函數ReadDat()讀取這若干個正整數并存入數組xx中。}輸出結果為:m=} k/=10。{ s=s*10+k%10。system(pause)。fclose(out)。 } fprintf(out,m=%4ld,m*m=%6ld,m*m*m=%8ld \n,m,m*m,m*m*m)。 { printf(m=%4ld,m*m=%6ld,m*m*m=%8ld \n,m,m*m,m*m*m)。amp。amp。m++)for(m=11。out=fopen(,w)。FILE *out。}main(){long m。i++)for(i=0。half=strl/2。strl=strlen(xy)。ltoa(n,xy,10)。char xy[20]。include int jsValue(long n){int i,strl,half。滿足上述條件的數如m=11,m2=121,m3=1331皆為回文數。}****************************************************************★題目25 (回文數問題)下列程序的功能是:尋找并輸出11至999之間的數m,它滿足m,m2和m3均為回文數。}i++){printf(%d\n,b[i])。for(i=0。fprintf(out,%d\n,num)。printf(%d\n,num)。}writeDat(int num,int b[]){}main(){if(hum==ten||hum==data||ten==data)bb[k++]=j。ten=j%100/10。{j=I*I。i32。include fclose(fp) 。fprintf(fp, %.2lf\n%.2lf\n%.2lf\n, aver,sumint,sumdec) 。fp = fopen(, w) 。FILE *fp 。return 0 。fclose(fp) 。 fscanf(fp, %d, amp。while(!feof(fp)) {if((fp = fopen(, r)) == NULL) return 1 。int i = 0 。FILE *fp 。system(pause)。} return 。 i MAXNUM 。aver/=N。i++)for (i=0。void CalValue(void) {int i。/*小數部分之和*/int ReadDat(void) 。/*平均值*/double sumint=。int N= 0 。include include define MAXNUM 200}題目23 (實數運算題)(個數200)實數,函數readdat()讀取這N個實數并存入數組xx中。}fclose(fp)。 fprintf(wf,%f\n,s)。 s=countValue(n)。n)。i++){for(i=0。wf=fopen(,w)。if(fp==NULL){fp=fopen(,r)。progReadWrite(){progReadWrite()。printf(自然數之和的平方根=%f\n,countValue(1000))。clrscr()。}i++)for(i=1。double s=。double countValue(int n){ int i。 請勿改動主函數main()和輸入輸出數據函數progReadWrite()的內容。 。例如若n為1000時,函數值應為:s=?!镱}目22(平方根問題)請編寫函數countValue(),它的功能是:求n以內(不包括n)同時能被3與7整除的所有自然數之和的平方根s,并作為函數值返回。注:本題在無憂或捷成模擬盤中,需定義double x0,x1。fclose(wf)。fprintf(wf,%f\n,countValue())。wf=fopen(,w)。FILE *wf。}main(){return x1。 }while(fabs(x0x1)=)。 x1=cos(x0)。do{ x0=x1。x1=。float countValue(){ float x0,x1。 請勿改動主函數main()和輸出數據函數writeDat()的內容。 部分源程序已給出。 請編寫函數countValue()實現程序的要求,最后調用函數writeDat()。 迭代步驟如下:(1);(2)X0=X1,把X1的值賦給X0;(3)X1=cos(X0),求出一個新的X1;(4),執(zhí)行步驟(5),否則執(zhí)行步驟(2);(5)所求X1就是方程cos(X)X=0的一個實根,作為函數值返回。fclose(out)。fclose(in)。fscanf(in,%d,amp。i50。int i,n,s。FILE *in,*out。}main(){return fn。 fn=f0+f1。 { f0=f1。while(fn=t)fn=f0+f1。int jsValue(int t){ int f0=0,f1=1,fn。 請勿改動主函數main()和寫函數writeDat()的內容。 。例如:當t=1000時,函數值為:1597。 最后調用函數writeDat()讀取50個數據t。 F(0)=0,F(1)=1}★題目20(Fibonacci數列題)編寫函數jsValue,它的功能是:求Fibonacci數列中大于t的最小的一個數,結果由函數返回。} i++ 。 fprintf(wf, %d\n, n) 。 n=findStr(str, substr)。 || ch == 0x1a) substr[len] = 0 。 if(ch == 39。 ch = substr[len] 。 len = strlen(substr) 1 。 fgets(substr, 10, rf) 。 fgets(str, 80, rf) 。FILE *rf, *wf 。int n, len, i = 0。char str[81], substr[3], ch。}int n 。char str[81], substr[3] 。} } if(flag==1)} else {flag=0。jlen2。ilen1。include include include ☆題目19(單詞個數統(tǒng)計題)編寫一個函數findStr(char *str,char *substr),該函數統(tǒng)計一個長度為2的子字符串在另一個字符串中出現的次數。fclose(fp)。i++){for(i=0。fp=fopen(,w)。int i。FILE *fp。}fclose(fp)。 i++。)。 p=strchr(xx[i],39。while(fgets(xx[i],80,fp)!=NULL){if((fp=fopen(,r))==NULL) return 1。int ReadDat(void){WriteDat()。encryptChar()。if(ReadDat()){clrscr()。void main() else xx[i][j]=xx[i][j]*11%256。 if(xx[i][j]*11%256=32||xx[i][j]%2==0) continue。jstrlen(xx[i])。imaxline。int ReadDat(void)。int maxline=0。include include include include 。 替代關系:f(p)=p*11 mod 256(p是數組中某一個字符的ASCII值,f(p)是計算后新字符的ASCII值),如果原字符的ASCII值是偶數或計算后f(p)值小于等于32,則該字符不變,否則將f(p)所對應的字符進行替代。}☆題目18函數ReadDat(),存入到字符串數組xx中;請編制函數encryptChar(),按給定的替代關系對數組xx中的所有字符進行替代,仍存入數組xx的對應的位置上,最后調用函數WriteDat()。} fprintf(fp, %s\n, xx[i]) 。 i maxline 。}void WriteDat(void){} i++ 。) 。 p = strchr(xx[i], 39。while(fgets(xx[i], 80, fp) != NULL) {if((fp = fopen(, r)) == NULL) return 1 。char *p 。int i = 0 。FILE *fp 。WriteDat() 。ChA() 。 printf(!\n\007) 。if(ReadDat()) {clrscr() 。 xx[i][strlen(xx[i])1]+=ch。jstrlen(xx[i])1。 { ch=xx[i][0]。i++)for(i=0。char ch。void ChA(void){ int i,j。/* 文章的總行數 */int ReadDat(void) 。int maxline = 0 。 請勿改動主函數main()、讀數據函數ReadDat()和輸出數據函數writeDat()的內容。 注意:部分源程序已給出。請編制函數CHA(),其函數功能是:以行為單位把字符串中的第一個字符的ASCII值加第二個字符的ASCII值,得到第一個親朋字符,第二個字符的ASCII值加第三個字符的ASCII值,得到第二個新字符,依此類推一直處理到最后第二個字符,最后一個字符的ASCII值加原第一個字符的ASCII值,得到最后一個新的字符,得到的新字符分別存放在原字符串對應的位置上。fclose(fp)。i++){for(i=0。fp=fopen(,w)。clrscr()。int i。FILE *fp。return 0。}maxline=i。 if(p)*p=0。\n39。}int ReadDat(void){}return。printf(!\n\007)。{ xx[i][j]+=(xx[i][j]4)。j++) for(j=0。i++)for(i=0。void StrCharJR(){int i,j。/*文章的總行數*/int ReadDat(void)。include include include char xx[50][80]。}★☆題目16(字符替換題)函數ReadDat(),請編制函數StrCharJR(),其函數的功能是:以行為單位把字符串中所有字符的ASCII值右移4位,然后把右移后的字符ASCII值再加上原字符的ASCII
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1