根据IP地址知道计算机名:IPADDR ipAddr;ipAddr = inet_addr("10.141.14.168");struct hostent *hp;hp = gethostbyaddr((char *)&ipAddr,4,AF_INET);strComputerName = hp->h_name; 出错:
error C2065: 'IPADDR' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'ipAddr'
error C2065: 'ipAddr' : undeclared identifier该怎么做?
error C2065: 'IPADDR' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'ipAddr'
error C2065: 'ipAddr' : undeclared identifier该怎么做?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货