Skip to content
Rain Hu's Workspace
Go back

[CS50] Lec 0 - Introduction to Computer Science

Rain Hu

什麼是 Computer Science(CS)?

如何表達數字?

如何表達文字?

如何表達顏色?

那圖案、影片、音樂呢?

All are composed by 0 and 1 in the computer world.

演算法 (Algorithms)

Pseudocode

Pick up phone book
Open to middle of phone book
Look at page
If person is on page
    Call person
Else if person is earlier in book
    Open to middle of left half to book
    Go back to line 3
Else if person is later in book
    Open to middle of right half to book
    Go back to line 3
Else
    Quit
#include <stdio.h>

int main(void)
{
    printf("hello, world\n");
}

Scratch

Reference: https://cs50.harvard.edu/college/2021/fall/notes/0/


Share this post on:

Previous
[Java] Java 的中 HashMap.comparableClassFor(Object x) 的函式解讀
Next
[IT] 在 GitHub Pages 中渲染 KaTex 公式