摘要: ```cpp std::string data = "This is a sample string."; // convert string to upper case std::for_each(data.begin(), data.end(), "" { c = ::toupper(c); } 阅读全文
posted @ 2018-08-13 22:05 scott_h 阅读(288) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/wudishine/article/details/42466831 MD5.h MD5.cpp =========== Poco库 获取文件MD5 调用 std::string strMD5; std::ifstream f1(filename, std 阅读全文
posted @ 2018-08-13 21:05 scott_h 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 我遇到的情况是c++ stl include include 在stdafx.h 和 .cpp 重复了,所以出现此问题, 所以把依赖全放到一起了。 www.cnblogs.com/A Song/archive/2012/03/23/2413782.html 阅读全文
posted @ 2018-08-09 01:24 scott_h 阅读(462) 评论(0) 推荐(0) 编辑
摘要: http://www.cplusplus.com/reference/sstream/ostringstream/ https://en.cppreference.com/w/cpp/io/basic_stringstream https://www.cnblogs.com/hdk1993/p/58 阅读全文
posted @ 2018-08-08 22:58 scott_h 阅读(1148) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-08-07 01:10 scott_h 阅读(7) 评论(0) 推荐(0) 编辑
摘要: Windows WMIC命令使用详解(附实例) https://blog.csdn.net/aflyeaglenku/article/details/77878525 ============== 第一次执行WMIC命令时,Windows首先要安装WMIC,然后显示出WMIC的命令行提示符。在WMI 阅读全文
posted @ 2018-08-07 00:52 scott_h 阅读(1333) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/enweitech/article/details/51982114 在CMD和Powershell中 使用WMIC 先决条件: a. 启动Windows Management Instrumentation服务,开放TCP135端口。 b. 本地安全策略 阅读全文
posted @ 2018-08-07 00:51 scott_h 阅读(3043) 评论(0) 推荐(0) 编辑
摘要: 有下面几种常用选择: IBus拼音:sudo apt get install ibus pinyin IBUS五笔:sudo apt get install ibus table wubi 谷歌拼音输入法:sudo apt get install ibus googlepinyin Sun拼音输入法 阅读全文
posted @ 2018-07-31 14:15 scott_h 阅读(25264) 评论(0) 推荐(1) 编辑
摘要: 在 .rc资源 设置可以水平滚动, 垂直滚动 但是 水平滚动无效,水平方向 一直无法显示 完整 设置代码如下 改了很多值,一直无效。坑死我了!!!!!!! 最后想到直接看RC 资源文件的代码, 之前多了几个值,我直接删掉后,如下 最后就可以了,代码设置的水平长度,成功了。 阅读全文
posted @ 2018-07-27 03:29 scott_h 阅读(756) 评论(0) 推荐(0) 编辑
摘要: "/MD、/MT、/LD(使用运行库)" 有关 C 运行库以及使用 /clr(公共语言运行时编译) 进行编译时要使用哪些库的更多信息,请参见 CRT 库功能。 传递给链接器的给定调用的所有模块都必须使用相同的运行库编译器选项(/MD、/MT、/LD)进行编译。 有关如何使用运行库的调试版本的更多信息 阅读全文
posted @ 2018-07-13 00:49 scott_h 阅读(2136) 评论(0) 推荐(0) 编辑
摘要: Poco::DateTime Poco::Timespan Poco::Timestamp 时间操作 阅读全文
posted @ 2018-07-12 18:49 scott_h 阅读(916) 评论(0) 推荐(0) 编辑
摘要: POCO 中使用mysql, 需要自己添加connecter的header和lib 阅读全文
posted @ 2018-07-04 16:33 scott_h 阅读(612) 评论(0) 推荐(0) 编辑
摘要: windows 开源库: 查询CPU信息 . 包括ARM Mac windows "qemu" https://www.qemu.org/ 读取硬盘序列号 获取CPU的ID dlib 也有封装的库,来测试指令集(各个平台的) arm "STM32F4(读取芯片ID)" "读取STM32F207/40 阅读全文
posted @ 2018-06-24 21:40 scott_h 阅读(7358) 评论(0) 推荐(0) 编辑
摘要: 编译动态库 注意: 动态库: 【目标文件扩展】 = .dll + 【配置类型】 = 动态库(.dll) 静态库: 【目标文件扩展】 = .lib + 【 配置类型】= 静态库(.lib) 一定要匹配!!! 否则报错 命令行添加参数 即向main()函数传递参数的方法: 右键单击要 添加参数的工程 属 阅读全文
posted @ 2018-06-14 18:39 scott_h 阅读(2188) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/hackbuteer1/article/details/7390093 ^: 按位异或;&:按位与; | :按位或 计算机系统中,数值一律用补码来表示:因为补码可以使符号位和数值位统一处理,同时可以使减法按照加法来处理。 对补码做简单介绍:数值编码分为 阅读全文
posted @ 2018-06-10 02:38 scott_h 阅读(2861) 评论(0) 推荐(0) 编辑
摘要: math 基础 阅读全文
posted @ 2018-05-25 18:10 scott_h 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 视频 http下载代码 dn.go(注意:代码很ugly,没怎么花时间) 总体感觉特别简单,网上看了下 net/http ,io这2个库的使用, 几分钟就写完了,感觉cpp 在做工具这块 开发效率的确差太多(没有轮子的话)。 再放一个 go example 网站,https://gobyexampl 阅读全文
posted @ 2018-05-22 22:41 scott_h 阅读(9339) 评论(0) 推荐(0) 编辑
摘要: ffmpeg文件合并 文件1.ts~ 100.ts 流媒体文件1.txt 格式 命 令 (-vcodec copy -acodec copy 等于 -c copy) 注意如果直接生成mp4文件会卡顿,所以先生成相同类型的mkv,再转成MP4 阅读全文
posted @ 2018-05-22 22:40 scott_h 阅读(5802) 评论(0) 推荐(0) 编辑
摘要: win10 因为隐私问题, 把mic,摄像头, 定位功能关闭, 之后调用USB摄像头的时候,忘了这个, 接口API 一直返回调用失败,【不能创建视频捕捉过滤器 hr=0x80070005】 => 拒绝访问。 用管理员模式也不行, 后来打开【设置】【隐私】打开相机 ,才解决 阅读全文
posted @ 2018-05-13 14:51 scott_h 阅读(3786) 评论(4) 推荐(0) 编辑
摘要: Load Blance 阅读全文
posted @ 2018-01-27 23:24 scott_h 阅读(271) 评论(0) 推荐(0) 编辑