11 2020 档案

GCC 中零长数组,C99中的变长数组(VLA)
摘要:##GCC 中零长数组 GCC 中允许使用零长数组,把它作为结构体的最后一个元素非常有用,下面例子出自 gcc 官方文档。 struct line { int length; char contents[0]; }; struct line *thisline = (struct line *) m 阅读全文

posted @ 2020-11-26 11:07 ims- 阅读(402) 评论(0) 推荐(0)

二叉树前中后序遍历cpp
摘要:title #include <cstdio> #include <cstring> #include <iostream> using namespace std; /* 前序 HGEDBFCA, 中序 EGBD H FAC, 后序 EBDGACFH, root : H left : EGBD r 阅读全文

posted @ 2020-11-06 10:40 ims- 阅读(158) 评论(0) 推荐(0)

导航