# c_template **Repository Path**: gunhe/exercise_c ## Basic Information - **Project Name**: c_template - **Description**: c_template - **Primary Language**: C - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-21 - **Last Updated**: 2026-03-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # C 语言和 Zig 混合编程练习 这是一个用于学习 C 语言和 Zig 语言的练习项目,包含基础语法、系统编程和网络编程等示例。 ## 项目结构 ``` exercise_c/ ├── ch02/ # C 语言基础示例 ├── zig/ # Zig 语言学习章节 │ ├── ch001/ # Zig 与 C 互操作 │ ├── ch004/ # 核心语法(数组、切片、字符串) │ ├── ch005/ # 函数和程序结构 │ ├── ch007/ # HTTP 服务器实现 │ └── ch008-017/ # 高级主题 ``` ## 环境配置 ### Windows 环境 (MSYS2) - [MSYS2 官网](https://www.msys2.org/) - [MinGW-w64 入门指南](https://www.mingw-w64.org/getting-started/msys2/) ### Zig 安装 - [Zig 官方入门指南](https://ziglang.org/learn/getting-started/) - 推荐使用 [zvm](https://github.com/tristanisham/zvm) 管理 Zig 版本(详见 `zig/ch001/readme.md`) ## 学习资源 ### Zig 入门教程 **英文资源** - [Zig Book by Pedro Park](https://pedropark99.github.io/zig-book/) - 系统性 Zig 教程 - [Zig Cookbook](https://cookbook.ziglang.cc/01-01-read-file-line-by-line.html) - 实用代码示例 - [Zig Guide](https://zig.guide/master/async/basic-event-loop/) - 官方入门手册 **中文资源** - [Zig Book 中文版](https://republicroad.github.io/zig-book-cn/zh/1.Zig%20%E7%AE%80%E4%BB%8B.html) - [Dive Into Systems 中文版](https://republicroad.github.io/republic/diveintosystems/%E7%AC%AC0%E7%AB%A0-%E7%AE%80%E4%BB%8B.html) - 系统编程基础 ### 系统编程 - [Dive Into Systems](https://diveintosystems.org/book/introduction.html) - 深入理解计算机系统 ## 快速开始 查看各章节的 README 文件获取详细说明: - C 语言示例:`ch02/README.md` - Zig 基础:`zig/ch001/readme.md`