摘要: /* * @Author: by777 * @Date: 2025-03-21 17:31:14 * @LastEditors: by777 * @LastEditTime: 2025-03-21 17:33:23 * @FilePath: /cxx_stl/runoob_07.cpp * @Des 阅读全文
posted @ 2025-03-25 10:40 白柒 阅读(21) 评论(0) 推荐(0)
摘要: /* * @Author: by777 * @Date: 2025-03-21 17:18:39 * @LastEditors: by777 * @LastEditTime: 2025-03-21 17:29:08 * @FilePath: /cxx_stl/runoob_06.cpp * @Des 阅读全文
posted @ 2025-03-25 10:39 白柒 阅读(22) 评论(0) 推荐(0)
摘要: /* * @Author: by777 * @Date: 2025-03-21 17:01:06 * @LastEditors: by777 * @LastEditTime: 2025-03-21 17:13:15 * @FilePath: /cxx_stl/runoob_05.cpp * @Des 阅读全文
posted @ 2025-03-25 10:38 白柒 阅读(9) 评论(0) 推荐(0)
摘要: /* * @Author: by777 * @Date: 2025-03-21 16:30:18 * @LastEditors: by777 * @LastEditTime: 2025-03-21 16:37:38 * @FilePath: /cxx_stl/runoob_04.cpp * @Des 阅读全文
posted @ 2025-03-25 10:37 白柒 阅读(7) 评论(0) 推荐(0)
摘要: /* * @Author: by777 * @Date: 2025-03-20 20:18:41 * @LastEditors: by777 * @LastEditTime: 2025-03-20 20:33:19 * @FilePath: /cxx_stl/runoob_03.cpp * @Des 阅读全文
posted @ 2025-03-25 10:35 白柒 阅读(13) 评论(0) 推荐(0)
摘要: /* * @Author: by777 * @Date: 2025-03-20 20:11:37 * @LastEditors: by777 * @LastEditTime: 2025-03-20 20:13:00 * @FilePath: /cxx_stl/runoob_02.cpp * @Des 阅读全文
posted @ 2025-03-25 10:34 白柒 阅读(26) 评论(0) 推荐(0)
摘要: /* * @Author: by777 * @Date: 2025-03-20 19:54:01 * @LastEditors: by777 * @LastEditTime: 2025-03-20 20:13:27 * @FilePath: /cxx_stl/runoob_01.cpp * @Des 阅读全文
posted @ 2025-03-25 10:24 白柒 阅读(27) 评论(0) 推荐(0)
摘要: 动态库(在 Linux 系统下通常以 .so 为扩展名,在 Windows 系统下以 .dll 为扩展名)的使用包含创建和在程序里调用这两个主要方面,以下将分别介绍在 Linux 和 Windows 系统中动态库的使用方法。 Linux 系统下动态库的使用 1. 创建动态库 假设有两个源文件 add 阅读全文
posted @ 2025-01-24 16:32 白柒 阅读(161) 评论(0) 推荐(0)
摘要: 以下是一个完整的示例,展示如何创建一个 .a 静态库文件,并在另一个程序中使用它。这个示例包含了创建静态库的源文件、使用静态库的主程序文件,以及相应的编译和链接步骤。 1. 创建静态库所需的源文件和头文件 编写头文件 math_operations.h 这个头文件声明了我们要在静态库中实现的函数。 阅读全文
posted @ 2025-01-24 16:10 白柒 阅读(204) 评论(0) 推荐(0)
摘要: C语言读写文件 在C语言中,你可以使用标准库中的文件操作函数来向文件中写入字符文本。以下是一些常用的函数和步骤: 打开文件:使用 fopen 函数打开一个文件,如果文件不存在,则创建它。 写入文件:使用 fprintf、fputs 或 fwrite 等函数将数据写入文件。 关闭文件:使用 fclos 阅读全文
posted @ 2025-01-24 15:18 白柒 阅读(681) 评论(0) 推荐(0)