上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: 无连接的socket的客户端和服务端以及面向连接socket的服务端通过调用bind函数来配置本地信息。使用bind函数时,通过将my_addr.sin_port置为0,函数会自动为你选择一个未占用的端口来使用。 Bind()函数在成功被调用时返回0;出现错误时返回"-1"并将errno置为相应的错 阅读全文
posted @ 2022-11-30 11:24 wsl-hitsz 阅读(876) 评论(0) 推荐(0) 编辑
摘要: cmake 基础语法 最低版本 cmake_minimum_required(VERSION 3.1) Project VERSION 指定版本,并设置一系列变量 DESCRIPTION 项目描述 LANGUAGES 支持C/CXX/Fortran/ASM ,C/C++ 为默认值 生成可执行文件 a 阅读全文
posted @ 2022-11-11 11:00 wsl-hitsz 阅读(82) 评论(0) 推荐(0) 编辑
摘要: cmake 基础语法 最低版本 cmake_minimum_required(VERSION 3.1) Project VERSION 指定版本,并设置一系列变量 DESCRIPTION 项目描述 LANGUAGES 支持C/CXX/Fortran/ASM ,C/C++ 为默认值 生成可执行文件 a 阅读全文
posted @ 2022-11-11 10:59 wsl-hitsz 阅读(84) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/haippy/p/3280643.html https://www.cnblogs.com/haippy/p/3239248.html 阅读全文
posted @ 2022-08-07 21:50 wsl-hitsz 阅读(12) 评论(0) 推荐(0) 编辑
摘要: https://cloud.tencent.com/developer/article/1599283 阅读全文
posted @ 2022-08-03 21:00 wsl-hitsz 阅读(24) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/lfri/p/12597297.html 阅读全文
posted @ 2022-07-24 01:08 wsl-hitsz 阅读(24) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000039774784 阅读全文
posted @ 2022-07-24 01:07 wsl-hitsz 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 为了实现一个string类需要那些构造函数呢? 拷贝构造函数, 注意拷贝构造函数一定要加引用& 要不然会陷入到无限调用拷贝构造函数中 构造函数传递一个char指针,来初始化string 封装的char 指针,int strlen(char*) 这个函数返回char* 指针有多少个元素,但是一般构造c 阅读全文
posted @ 2022-07-21 16:32 wsl-hitsz 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 你只要做两件事, 定义hash函数,定义等于比较函数。下面的代码是一个例子: -bash-2.05b$ cat my.cpp #include <hash_map> #include <string> #include <iostream> using namespace std; //define 阅读全文
posted @ 2022-07-20 14:20 wsl-hitsz 阅读(32) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_44662991/article/details/114144108?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EOPENSEARCH%7Edefault-13 阅读全文
posted @ 2021-09-13 13:52 wsl-hitsz 阅读(32) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 13 下一页