Skip to content

败犬日报 2025-09-11

1. 你怎么知道我用C++证明了交换律(文章)

https://zhuanlan.zhihu.com/p/1949246845734871446

2. 记一次有趣的 gcc patch 经历(文章)

https://zhuanlan.zhihu.com/p/1948533594613094277

3. 上面文章里的 index[array]

这是因为相当于 *(array + index)

所以 left_child[right_child[parent[i]]] 可以写成 i[parent][right_child][left_child],甚至能提升一点可读性。(当然树结构还是用指针比较好)

4. move 本身啥都没发生,只是个标记,移动发生在移动构造 / 移动赋值函数

不太明白的可以看 https://zclll.com/index.php/cpp/value_category.html

5. 看到大段文字有点看不下去,于是打算打开机翻,然后发现这些文字本来就是中文

申请中译中。