ccc112b / sp Goto Github PK
View Code? Open in Web Editor NEW課程:系統程式 -- 筆記、習題與報告
課程:系統程式 -- 筆記、習題與報告
至少要包含 (建議二維陣列用單一個 double * 來宣告傳遞)
另外若你用單層指標,非二維陣列,那麼就能做到類似 numpy 的 reshape 的功能
記得描述清楚『元創/參考/使用 ChatGPT .... 』
DOWHILE = do STMT while (E)
做完寫一個 README.md ,然後把執行結果貼上去,寫點說明,交上來!
語言不限 ... (C/C++/Python/Java/.....)
參考
參考
繳交:除線上繳交之外,最後兩週 請到課堂上展示你的系統
最後兩週可以來現場繳交,這樣老師會比較清楚你的作業,不需要寫太多說明,也比較不需要猜測。(如果老師需要猜測,那就會用最保守的猜測方法,意思是成績會比較差)
注意:請註明下列事項 (例如:全部原創,有參考維基百科,但沒有剪貼)
ssh [email protected]
密碼: nqucsiee320
參考
++ gcc -w c4.c -o c4
++ ./c4 -s test/fib.c
1: #include <stdio.h>
2:
3: int f(int n) {
4: if (n<=0) return 0;
ENT 0
LLA 2
LI
PSH
IMM 0
LE
BZ 0
IMM 0
LEV
5: if (n==1) return 1;
LLA 2
LI
PSH
IMM 1
EQ
BZ 0
IMM 1
LEV
6: return f(n-1) + f(n-2);
LLA 2
LI
PSH
IMM 1
SUB
PSH
JSR -1283591064
ADJ 1
PSH
LLA 2
LI
PSH
IMM 2
SUB
PSH
JSR -1283591064
ADJ 1
ADD
LEV
7: }
LEV
8:
9: int main() {
10: printf("f(7)=%d\n", f(7));
ENT 0
IMM -1283328912
PSH
IMM 7
PSH
JSR -1283591064
ADJ 1
PSH
PRTF
ADJ 2
11: }
LEV
要求
提示:
參考
以下題目 2 選 1 (第一題較簡單,也較容易產生 race condition,推薦做第一題)
提醒:最後要寫一個 README.md 文件,記錄執行結果並說明這些結果的意義。
問題 1 詳細描述
a. 使用者應紀錄自己原本帳戶有多少錢,每次存提多少錢,還剩下多少錢
b. 每次存提款請求給銀行之後,銀行應傳回還剩下多少錢。
c. 使用者應檢核『存款+-存提款數量=剩下金額』是否正確,如果有錯立刻報錯。
參考
最後兩週可以來現場繳交,這樣老師會比較清楚你的作業,不需要寫太多說明,也比較不需要猜測。(如果老師需要猜測,那就會用最保守的猜測方法,意思是成績會比較差)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.