2016年12月17日 星期六

CS50 Week 2

Lecture

解說C的基本程式碼,大概如下:


Lecture, continued

當程式碼擷取四個字串時,記憶體暫存空間會是怎樣排序這些字串呢?

請看下列例子:



其內存會是這樣子:

......Dean\0
Hannah
\0Maria
\0Rob\0.....

\0是代表結束符號的意思。

之後有講到array、建構子帶參數、加密,其例子如下:



Walkthroughs

functions-0


functions-1


float-0, float-1, float-2


string-0


string-1


ascii-0


ascii-1


capitalize-0


capitalize-1


capitalize-2


ages


argv-0


argv-1


argv-2


Section

詳述Administrivia, Functions, Variables and Scope, Arrays, Command Line Arguments, Magic Numbers。

Shorts

詳述Arrays, Caser Cipher, Command Line Arguments, Global Variables, Redirecting & Pipes, Return Value, RSA, Scope, Vigenère Cipher

沒有留言:

張貼留言