上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页
摘要: console版计算器: 阅读全文
posted @ 2019-09-01 16:49 htj10 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 拖尾返回类型:当模板函数的返回值取决于特定的模板形参时,可以使用 auto 关键字指定返回类型,然后在函数头的 -> 后使用 decltype 操作符来定义返回类型。 decltype(..)是获得一个表达式的结果值的类型。->后的是函数的返回类型。 阅读全文
posted @ 2019-08-31 15:41 htj10 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstdarg> int sum(int count, ...) {//接收数量不定的参数 if (count <= 0) return 0; va_list argList; va_start(argList, count); int sum = 0; for (int i = 0; i < count; ++i) { sum += v 阅读全文
posted @ 2019-08-31 10:49 htj10 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 一、下载和编译Poco库 参考:www.jianshu.com/p/94c27101eee3blog.csdn.net/walk_and_think/article/details/82432863 下载地址:https://pocoproject.org/releases/poco-1.9.0/ 阅读全文
posted @ 2019-08-19 22:20 htj10 阅读(2717) 评论(0) 推荐(0) 编辑
摘要: 开始 ``` find() : Finds the first substring equal to the given character sequence find_first_of() : Finds the first character equal to one of characters 阅读全文
posted @ 2019-08-14 20:51 htj10 阅读(1770) 评论(0) 推荐(0) 编辑
摘要: console控制台:使用<winsock2.h> 和 ws2_32.lib 参考:孙鑫C++课程14 TCP:面对连接的、安全的通信 总结:TCP服务端1. 创建流套接字(SOCK_STREAM)sockSrv2. 绑定本地IP地址和端口 bind(...)3. 监听 listen(...)4. 阅读全文
posted @ 2019-07-27 16:49 htj10 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 隐藏: 显示: //声明:SetWindowPos(hWnd: HWND; {窗口句柄}hWndInsertAfter: HWND; {窗口的 Z 顺序}X, Y: Integer; {位置}cx, cy: Integer; {大小}uFlags: UINT {选项}): BOOL;//hWndIn 阅读全文
posted @ 2019-07-25 21:59 htj10 阅读(818) 评论(0) 推荐(0) 编辑
摘要: 关于CString的详细用法,参见:www.cnblogs.com/htj10/p/9341545.html 关于std::string的详细用法,参见:http://www.cplusplus.com/reference/string/string/?kw=string 1. 查找字符(串)-- 阅读全文
posted @ 2019-07-19 23:52 htj10 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: 注:以下为转载:2005-10 作者:宋宝华 出处:天极网 http://soft.yesky.com/lesson/318/2166818.shtml VC++动态链接库编程之非MFC DLL 4.1 一个简单的DLL 第2节给出了以静态链接库方式提供add函数接口的方法,接下来我们来看看怎样用动 阅读全文
posted @ 2019-07-14 11:58 htj10 阅读(404) 评论(0) 推荐(0) 编辑
摘要: VS下设置dll和lib的路径 以下是一些DLL工程或静态库工程,设置生成的库文件(x.dll和x.lib)所在地方(输出路径)的方法: 设置 x.dll 输出路径方法是在右键项目的"属性"->连接器->常规, 然后在常规属性界面中的 "输出文件" 中填入自己想要x.dll文件的输出路径。 设置 x 阅读全文
posted @ 2019-07-11 20:47 htj10 阅读(1036) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页
TOP