Skip to content

Study and practice C language. Including code, comments, and documentation. 学习 C 语言代码保存。

License

Notifications You must be signed in to change notification settings

Free-Aaron-Li/learning_c

Repository files navigation

Learning C

1. 项目简介

本项目主要用于学习 C 语言,主要学习内容有:

  1. 格式化输入输出;
  2. 表达式;
  3. 语句与数组;
  4. 函数;
  5. 指针与字符串;
  6. 结构体与枚举;

1.1 项目依赖

编译本项目依赖于以下工具:

工具 版本
gcc 14.2.0
cmake 3.15.0
xmake 2.9.9
doxygen 1.13.2

推荐使用CLion IDE开发。

2. 项目编译与运行

本项目首次采用 xmake 编译,可参照本项目的 xmake.lua 查看具体配置,同时项目本身在上传时会根据 钩子脚本 自动生成 CMakeLists.txt 文件,以便于使用 CMake 进行编译。

下面介绍如何进行编译并运行操作

2.1 xmake 编译

# 编译
xmake

详细语法参照:xmake 官方文档

2.2 CMake 编译

# 编译
mkdir build && cd build
cmake ..
make

2.3 运行

编译生成的可执行文件存放在 bin/ 目录下。本项目默认生成 Linux 可执行文件。

3. 文档

本项目通过Doxygen管理文档,具体的Doxygen配置参考:Doxyfile

通过执行命令得到项目详细文档:

# 生成文档
doxygen
# 查看已修改配置
doxygen -x Doxyfile

生成文件夹doxygen存放在项目根目录中,其中生成有html文件和latex文件。

4. 参考

C语言程序设计:现代方法

C程序设计语言

About

Study and practice C language. Including code, comments, and documentation. 学习 C 语言代码保存。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published