在C语言中,#include "netdb.h文件时什么意思?

发布网友

我来回答

2个回答

热心网友

#include "netdb.h"
包含一个头文件。头文件名是 netdb.h

MS VC++ 编译器 无此头文件

unix 有。net -- 网络 (network),db -- 数据库(database)
netdb.h 定义了与网络有关的结构,变量类型,宏,函数。
例如:
struct hostent *gethostbyaddr(const void *addr, size_t len, int type);
struct hostent *gethostbyname(const char *name);

热心网友

1、#include "netdb.h"
包含一个头文件。头文件名是 netdb.h

2、MS VC++ 编译器 无此头文件。unix 有。
net -- 网络 (network),db -- 数据库(database)
netdb.h 定义了与网络有关的结构,变量类型,宏,函数。
例如:
struct hostent *gethostbyaddr(const void *addr, size_t len, int type);
struct hostent *gethostbyname(const char *name);

热心网友

#include "netdb.h"
包含一个头文件。头文件名是 netdb.h

MS VC++ 编译器 无此头文件

unix 有。net -- 网络 (network),db -- 数据库(database)
netdb.h 定义了与网络有关的结构,变量类型,宏,函数。
例如:
struct hostent *gethostbyaddr(const void *addr, size_t len, int type);
struct hostent *gethostbyname(const char *name);

热心网友

1、#include "netdb.h"
包含一个头文件。头文件名是 netdb.h

2、MS VC++ 编译器 无此头文件。unix 有。
net -- 网络 (network),db -- 数据库(database)
netdb.h 定义了与网络有关的结构,变量类型,宏,函数。
例如:
struct hostent *gethostbyaddr(const void *addr, size_t len, int type);
struct hostent *gethostbyname(const char *name);

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com