2013年4月5日 星期五

foo bar baz qux

"foo" "bar" "baz" "qux"

arbitrary words in computer science

v3

C 裡面 main 的型態

int main (void) {
}


int main (int argc, char* argv[]) {
}


"argc" : "argument count"
"argv" : "argument vector"
"vector" : is just a fancy way of saying "array"


v3

2013年3月11日 星期一

Clang 編譯器 (compiler)

Clang is the name of a compiler

編譯器

a program that converts source code into object code (0's and 1's)

command to compile a file: "clang hello.c"

command for running object code file: "./a.out"
("." represents the current folder 目前所在的資料夾)


command:to 編譯 "clang -o hello hello.c"
then, command to 執行: "./hello"



Gedit

1. Color coding:

save a file with the ".c" extension and Gedit will color code the source code in the file

例: "hello.c"

2. to open a file using Gedit: "gedit holloyway.c"



jharvard

"jharvard" is the user account created for everyone to use, hence it is seen at the command prompt


David Malan uses Gedit in Fedora

CS50 appliance

a free software called a hypervisor