2015年8月26日

hostent结构体

摘要: hostent结构体使用这个东西,首先要包含2个头文件:#include #include struct hostent *gethostbyname(const char *name);这个函数的传入值是域名或者主机名,例如"www.google.com","wpc"等等。传出值,是一个hoste... 阅读全文

posted @ 2015-08-26 20:30 Mereyct 阅读(1679) 评论(0) 推荐(0) 编辑

[转载]typedef常见用法

摘要: 注:本文系转载,并修改了一些错误。typedef常见用法1.常规变量类型定义例如:typedef unsigned char uchar描述:uchar等价于unsigned char类型定义 uchar c声明等于unsigned char c声明2.数组类型定义例如: typedef int a... 阅读全文

posted @ 2015-08-26 16:24 Mereyct 阅读(249) 评论(0) 推荐(0) 编辑

导航