Skip to content

Commit

Permalink
Fix inner links.
Browse files Browse the repository at this point in the history
  • Loading branch information
KmolYuan committed Nov 18, 2020
1 parent 8282ec9 commit cfed564
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea/
book/
12 changes: 6 additions & 6 deletions src/languages/c-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ C++ 是由 C 語言延伸而來,擴充了更多較「抽象」的語法,以
然而不同編譯器就會導致某些指令不是「標準」用法,而且它不按 C / C++ 文法管轄,極容易破壞閱讀。
因此除非環境必須,還是盡量少使用。

<img src="img/gnu_compiler_collection.svg" width="200px" />
<img src="img/llvm.svg" width="200px" />
<img src="img/visual_cpp.png" width="200px" />
<img src="img/gnu_compiler_collection.svg" width="200px"/>
<img src="img/llvm.svg" width="200px"/>
<img src="img/visual_cpp.png" width="200px"/>

C / C++ 的世界觀中,由於 Linux 是由 C/C++ 寫成的,所以其開發環境是最簡易的。
GCC 編譯器通常最努力支援最新的標準;其他還有如 LLVM 品牌。
Expand Down Expand Up @@ -543,7 +543,7 @@ $(MAKE) -c path/to/other/makefile

### CMake

![cmake logo](img/cmake.svg){: style="width:200px"}
<img src="img/cmake.svg" width="200px"/>

基本上,CMake 直接為編譯流程打造各種變數與指令可以使用,非常方便。
編譯只剩兩步驟:**產生編譯架構****呼叫編譯器編譯**
Expand Down Expand Up @@ -982,7 +982,7 @@ static int SUM = 0;
static void foo();
```

## Scope / Stack and Heap
## Scope, Stack and Heap

在沒有任何 `{}` 符號包裝程式碼的情況下,稱為 Global Scope。
上面的小節提過,宣告的位置會決定該名稱的可見性。
Expand All @@ -997,7 +997,7 @@ static void foo();
以下功能的定義語法包含 Scope:

+ [Function](#function) / [Lambda Function](#lambda-function) / [Loops](#while-loop) / [Condition](#condition)
+ [Sturcture](#sturcture) / [Class](#objective-orientation) / [Union](union)
+ [Sturcture](#sturcture) / [Class](#objective-orientation) / [Union](#union)
+ [Namespace](#namespace) / [Enum Class](#enum-class)
+ 例外:[Switch Case](#switch-case) / [Enum](#enum)

Expand Down
6 changes: 3 additions & 3 deletions src/languages/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
根據測試,它在相同邏輯下會比優化的 C 語言慢 20~200 倍。
+ 相對龐大:同於高階程式語言的問題,Python 包裝成產品是 Byte Code 加上虛擬層,仍沒有機器碼小。

[interpretor]: IT-intro.md#compile
[interpretor]: ../it-intro.md#compile

## Syntax

Python 是看[換行記號](syntax.md#line-break)的,換而言之,你可以將每一行程式碼視為一條指令,
Python 是看[換行記號](../multilang/syntax.md#line-break)的,換而言之,你可以將每一行程式碼視為一條指令,
而不需要擔心它還有其他部分突然出現在檔案的其他地方,影響閱讀。

```python
Expand Down Expand Up @@ -112,7 +112,7 @@ Python 有一般程式語言常見的數據種類:
而且,`bool``int``float``complex` 都可以混和運算。

至於字串則是 Unicode 8 編碼而非二進制編碼,本身就具備各種常用的演算法且支援檢索功能,
並可以藉由[物件導向](IT-intro.md#objective-orientation)的方式呼叫,如 `'sbc'.find('c')` 可以獲得 2。
並可以藉由[物件導向](../it-intro.md#objective-orientation)的方式呼叫,如 `'sbc'.find('c')` 可以獲得 2。
而多行字串可以紀錄換行字元和縮排,用三個引號 `"""` 表示。

```
Expand Down
1 change: 0 additions & 1 deletion src/yaml.md

This file was deleted.

0 comments on commit cfed564

Please sign in to comment.