可以用如下代码将字符串形式的ip地址转换为四个整数. char * inputIp int ip[4]; sscanf_s(inputIp, "%d.%d.%d.%d", &ip[0], &ip[1],&ip[2],&ip[3]); ...
確定! 回上一頁