Command line
commands
much more powerful
2013年3月14日 星期四
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"
編譯器
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"
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
程式語言 Programming Language - String
程式語言 programming language 中的 "String" 是指 : "a sequence of zero or more characters"
訂閱:
文章 (Atom)