1月2日 作業系統 周二

2021-08-14 07:09:45 字數 1196 閱讀 6974

作業系統

1月2日 

周二問題:

棧的應用:

字串逆轉 素數  斐波那契數列

新知識:/* note:your choice is c ide */

#include "stdio.h"

//素數

sushu();

void main()

sushu()

}if(flag==0)

else

}/* note:your choice is c ide */

#include "stdio.h"

//輸出1-100所有素數

sushu();

void main()

sushu()

}if(flag==0)

else}}

/* note:your choice is c ide */

#include "stdio.h"

//斐波那契數列(遞推)

progression();

void main()

progression()

;int i;

for(i=1;i<20;i++)

for(i=0;i<20;i++)

}/* note:your choice is c ide */

#include "stdio.h"

//求最值

fun()

;int i,min;//,max,temp;

min=0;

//max=9;

for(i=1;i<10;i++)

}printf("%d",min);

printf("最大%.lf",a[min]);

}void main()

//錯誤素數

int s,j;//定義變數

printf("輸入乙個要判斷的數:");//輸出

scanf("%d",&s);//輸入

for(j=2;j

else//判斷

}當輸入9的時候顯示  9是素數

感悟:今天基本上是從早學到晚了,感覺沒有浪費時間,以後早上要聽一些bbc

多練、多問、自己動手,除錯錯誤、定時複習和總結    以後要準備筆記本或在電腦上記筆記總結 

有些事,遠觀就好了,真去打擾別人就會失去那份美好,所以,揮一揮衣袖,不帶走一片雲彩。

吃得苦中苦,方為人上人

1月9日 作業系統 周二

作業系統 1月9日 周二 實現的功能 遞迴 n的k次冪 查詢表 note your choice is c ide 斐波那契數列遞迴 int fun int n else void main note your choice is c ide n的k次冪 fun int x,int k else v...

1月19日 作業系統 周五

作業系統 1月19日 周五 note your choice is c ide include stdio.h define m 10 全域性巨集 struct list 全域性結構體 struct good 結構體 struct good s 結構體變數 void five one int p f...

10月26日 周二 晴

天氣預報說今天有颱風,天氣將降溫。一早醒來,風和日麗,陽光明媚,是否是山雨欲來風滿樓?心情很是惆悵,雖然考完試了,輕鬆了不少,但是生活依舊煩悶,雖然每天仍是笑聲爽朗。我離開了莊,儘管不捨,但仍是義無反顧。每每想起心便是鈍鈍的疼,我是個好女孩,但是為何幸福離我那般遠?人是不是都很賤,容易到手的東西就是...