C++ 重写《算法(第4版)》1.2 节的代码以及该节习题解答
本文汇总了笔者用 C++ 重写《算法(第4版)》 1.2 节的代码和该节习题解答的链接。
正文
涉及的算法、数据类型和测试用例。
| 算法、数据类型和测试用例 | 重写代码所在文件 | 说明 |
|---|---|---|
| Accumulator | accumulator.hxx | 累加器类 |
| Cat | cat.cpp | In&Out 的用例 |
| Counter | counter.hxx | 计数器类 |
| Date | date.hxx | 日期类 |
| - | - | |
| Flips | flips.cpp | Counter 的用例 |
| FlipsMax | flips_max.cpp | Counter 的用例 |
| In | in.hxx | 输入流类 |
| Interval1D | interval_1d.hxx | 直线上的间隔类 |
| - | - | |
| - | - | |
| Out | out.hxx | 输出流类 |
| Rolls | rolls.cpp | Counter 的用例 |
| StaticSETofInts | static_set_of_ints.hxx | 整数集合类 |
| TestAccumulator | test_accumulator.cpp | Accumulator 的用例 |
| - | - | |
| Transaction | transaction.hxx | 交易类 |
| - | - | |
| Whitelist | whitelist.cpp | StaticSETofInts 的用例 |
习题
含习题、提高题和实验题。
| * | * | * | * | * | * | * | * | * | * |
|---|---|---|---|---|---|---|---|---|---|
| 1.ans | 2.cpp 2.txt |
3.ans | 4.cpp | 5.cpp | 6.cpp | 7.ans 7.cpp |
8.ans | 9.cpp | 10.ans |
| 11.cpp smart_date.hxx |
12.cpp | 13.cpp | 14.cpp | 15.ans | 16.ans | 17.ans | 18.ans | 19.cpp |
受限于作者的水平,读者如发现有任何错误或有疑问之处,请追加评论。作者将在收到意见后的第一时间里予以回复。 本文来自博客园,作者:green-cnblogs,转载请注明原文链接:https://www.cnblogs.com/green-cnblogs/p/19858719 谢谢!

浙公网安备 33010602011771号