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提供的教程和此存储库的最初灵感。
愉快的编码!