摘要: 简单的说这些函数就是: 将一个数的高低位互换 主机字节顺序成为小端,网路字节顺序成为大端。 原型: #include <arpa/inet.h> uint32_t htonl(uint32_t hostlong); uint16_t htons(uint16_t hostshort); uint32 阅读全文
posted @ 2020-06-18 16:59 Ruigel1 阅读(268) 评论(0) 推荐(1) 编辑
摘要: #include <iostream>#include <vector>#include <queue> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) 阅读全文
posted @ 2020-06-18 00:12 Ruigel1 阅读(145) 评论(0) 推荐(0) 编辑