Learn C Snippets
1.0.0
歡迎來到學習C代碼片段存儲庫!該存儲庫包含Learn-c.org教程中使用的所有代碼片段。它旨在幫助您遵循課程並練習C編程技能。
存儲庫由教程主題組織。每個主題都有其自己的目錄,其中包含相關代碼段。這是目錄結構的簡要概述:
.
├── 01_Hello_World
│ └── hello_world.c
│ └── task.md
├── 02_Variables_and_Types
│ └── variables_and_types.c
│ └── task.md
├── 03_Arrays
│ └── arrays.c
│ └── task.md
...
首先,只需克隆存儲庫並導航到感興趣的主題。您可以使用GCC等C編譯器來編譯和運行示例。先決條件
$ git clone https://github.com/Arichikurumo/learn-c-snippets.git
$ cd learn-c-snippets導航到包含要運行的代碼段的目錄,並使用C編譯器對其進行編譯。例如:
cd 01_Hello_World
gcc hello_world.c -o hello_world
./hello_world
歡迎捐款!如果您找到問題或有建議,請打開問題或創建拉動請求。確保遵循現有代碼樣式,並在必要時包含評論。
Fork the repository
Create a new branch (git checkout -b feature/my-feature)
Commit your changes (git commit -am 'Add new feature')
Push to the branch (git push origin feature/my-feature)
Create a new Pull Request
該項目是根據Apache許可證獲得許可的。有關詳細信息,請參見許可證文件。
感謝Learning-c.org提供的教程和此存儲庫的最初靈感。
愉快的編碼!