04 2020 档案

摘要:直接获取当前屏幕bitmap保存成bmp图像, 使用的接口都可以在msdn查找到资料 内容参考 : https://docs.microsoft.com/en-us/windows/win32/gdi/capturing-an-image https://www.cnblogs.com/cdh49/ 阅读全文
posted @ 2020-04-28 19:25 public_tsing 阅读(1766) 评论(0) 推荐(0)
摘要:用于将形如"+2.449E+2"的科学计数法字符串转为244.9的浮点型数值 代码如下, 如有疏漏, 欢迎指正 1 double sci2db(const std::string &strSci) 2 { 3 int iPower = 0; //幂 4 double dMntsa = 0; //尾数 阅读全文
posted @ 2020-04-23 10:04 public_tsing 阅读(3633) 评论(0) 推荐(1)
摘要:给公司测试写了个简单的Udp服务端测试接口, 写的时候感觉有很多魔数, 到msdn上查了一些资料, 做一个简单记录, 如有错误疏漏, 欢迎指正 先贴代码 1 #include <iostream> 2 #include <string> 3 4 #include <time.h> 5 6 #incl 阅读全文
posted @ 2020-04-17 11:33 public_tsing 阅读(1218) 评论(0) 推荐(0)
摘要:开个帖子记录一些工作学习过程中时不时就要用到linux相关的命令, 算是个备忘录 1. 文件操作 $iconv -f [src] -t [dst] [file] -o [outfile] 编码格式转换$chmod [1+2+4] [filename] 文件权限管理$chown [user]:[gro 阅读全文
posted @ 2020-04-14 10:31 public_tsing 阅读(267) 评论(0) 推荐(0)