【文件属性】:
文件名称:C语言获得电脑的IP地址的小例子
文件大小:33KB
文件格式:PDF
更新时间:2021-01-21 18:56:39
c语言 host 地址
代码如下:#include
#include #pragma comment(lib, “WS2_32.lib”) int main() { char host_name[256]; // define host name (for example:xxx-PC) int WSA_return, i; WSADATA WSAData; HOSTENT *host_entry; // record host information WORD wVersionRequested; wVersionRe