C++中str.find和str.substr
2020-08-17 本文已影响0人
靖哥哥编程
//通过域名获取主机IP
char host[] = "www.baidu.com";
struct hostent *ht = NULL;
ht = gethostbyname(host);
C++入门网站:https://www.runoob.com/cplusplus/cpp-web-programming.html
有C语言基础的同学大概1天时间能够全部浏览完,即可入门。没有太大的问题。