--- title: joe-U16(徐郁淞) categories: User ... 學歷 ----------------------- - 臺北科技大學 電機工程系(2016-2020) - 成功大學 資訊所(2020~) 聯絡資訊 ----------------------- - Email: `tand23744@gmail.com` - GitHub: [joe-U16](https://github.com/joe-U16) 2020秋季班 個人評量 ======================= 作業及筆記 ----------------------- - [lab0](https://hackmd.io/@joe-U16/rJa33IG4P) / [GitHub](https://github.com/joe-U16/lab0-c) - [quiz1](https://hackmd.io/@joe-U16/rkKLwyFNv) / [GitHub](https://github.com/joe-U16/NCKU-system-software/tree/main/quiz1) - [quiz2](https://hackmd.io/@joe-U16/B1G8xMjrv) / [GitHub](https://github.com/joe-U16/NCKU-system-software/tree/main/quiz2) - [quiz3](https://hackmd.io/@joe-U16/SkNycSsrw) / [GitHub](https://github.com/joe-U16/NCKU-system-software/tree/main/quiz3) - [quiz4](https://hackmd.io/@joe-U16/ry7ILIp8P) - [quiz5](https://hackmd.io/@joe-U16/HJYSuY6Lw) / [GitHub](https://github.com/joe-U16/NCKU-system-software/tree/main/quiz5) - [quiz6](https://hackmd.io/@joe-U16/rJrCMFVjD) - [kcalc](https://hackmd.io/@joe-U16/rJwLELO3P) / [GitHub](https://github.com/joe-U16/kcalc-fixed) 心得 ----------------------- 題目: ----------------------- a) 知道 x - y < 0 敘述為何不能寫為 x < y 嗎? (CS:APP 第 2 章) Ans: 前者使用減法,可能造成整數溢位,導致兩者行為不一致。 e.g. ``` >>> print 0U-1<0 $1 = 0 >>> print 0U < 1 $2 = 1 ``` c) 知道 void (*signal(int sig, void (*handler)(int))) (int); 這樣的宣告該如何解讀嗎? Ans: 1. signal is a pointer to a function that takes two parameters: 1. sig is a parameter to an int and 2. handler is a pointer parameter takes int to void 2. and takes int 3. and returns to void 學會的工具: ----------------------- Ubuntu, HackMd, Git, LaTex 數學式語法, Makefile, Bash Script, Visual Studio Code, Vim 用過 ubuntu 後就知道可以把 windows 刪掉了,總覺得在 windows 寫 C 特別彆扭,還有學會怎麼寫 markdown後,在寫筆記或文件都很方便,還可以搭配 LaTex 寫數學式,根本是做筆記神器,這堂課的作業都要用 hackmd 寫作業,這種把想法寫下來的方式真的對釐清想法很有幫助,而且在期末時還可以看到自己的產出。 增進對 C 語言的理解 ----------------------- 在第一次的作業 lab0 ,我第一次知道 struct 結構可以長這樣,用 struct 來定義鏈結串列的結構,也因為這次作業大量的使用到指標操作,所以也學會了指標的使用。 再來是認知到了數值系統的重要性,bitwise的用法,巨集的使用,都讓我驚嘆為什麼大家都那麼厲害。 自評(1-10): ----------------------- 10分,這是我花最多時間、最認真還有寫最多作業的一堂課了,我好棒。