- 博客(2)
- 收藏
- 关注
原创 tcp udp ip mac 数据头 c/c++ 定义
一、MAC帧头定义 /*数据帧定义,头14个字节,尾4个字节*/ typedef struct _MAC_FRAME_HEADER { char m_cDstMacAddress[6]; //目的mac地址 char m_cSrcMacAddress[6]; //源mac地址 short m_cType; //上一层协议类型,如0x0800代表上一层是IP协议,0x0
2018-04-13 13:37:30
309
翻译 C++ 模板
1. 指针与引用2. 运算符(操作符)重载3. int* fun()本质是函数 返回个int*(既是返回整型的指针) int (*f) ()4. 模板 template <class identifier> function_declaration; template <typename identifier> function_declaration; dem...
2018-04-12 17:45:32
66
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人