2017.6.8 CS50 week0+1 筆記

decimal 1 2 4 8 16 32 64 
binary    1 0 1 = 5
arbitrary 隨意的、獨斷的
neater 整潔、優美
primitive 原始的
thread 線、思路、線程
sprite 精靈
  • 一點一點加入程式,隨時執行並debug

bounce 彈回、跳
adjourn 中止、休會
  • 避免duplicate,多用loops
  • 盡量精簡程式,多用loops或functions
parentheses 括號()
; = semi column
{} = Braces
<> = angle brackets
syntax 句法
deliberate 謹慎的
  • 解析問題,再用程式一步步處理
#include <stdio.h>    //standard input/output

int main(void)    //main = "Green flag" in Scratch
{
    printf("hello world\n");
}
incantation 咒語
arcane 神秘的、n. 奧秘
abstraction 抽象、空想、不切實際的概念
Source code  ---> Compiler編譯器 ---->Machine Code
IDE = Integrated Development Enviroment
preemptively 先發制人地
convention 會議、慣例、常規、公約
typographical 排字上的
newness n.新、新奇
prompt n.提示、催促 a. 及時的
aesthetic 美學的、藝術的
dynamism 動力、活力
string name = get.string();
printf("hello, %s\n", name)      //%S = substitute to some String
regurgitate v. 反芻、流回
conventional 慣例的,常見的
  • 養成習慣,把程式設計的符合UX
  • 不要產生變數(Ex: x, y, z...)來存放資料,但只使用很少次
jargon 行話、黑話
layman 門外漢
asterisk = * 米字
denominator 分母
numerator 分子
modulo 餘數
arithmetic 算術、計算
  • 注意int不能表現分數,要用float
  • 注意overflow(好戰的甘地)
truncate 切去、縮短、截頭去尾
iteration 重複
induce 引起、導致
iterating 反覆說
subset 子集
precision 精確







留言

這個網誌中的熱門文章

開篇祝賀!!!

遊戲開發的學習架構

2017/04/11