会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
AABBOO
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
21
下一页
2021年1月25日
shell 统计代码行数
摘要: find . \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) -exec wc -l {} +
阅读全文
posted @ 2021-01-25 16:20 wolbo
阅读(162)
评论(0)
推荐(0)
2021年1月21日
c++ 控制台程序增加图标的一种方法
摘要: 1 下载喜欢的图标到工程目录 2 在相同目录新建文本文件 增加以下内容,并修改后缀为 logo.rc IDI_ICON1 ICON DISCARDABLE "car.ico"3 打开vcproj文件增加以下内容 <ItemGroup> <ResourceCompile Include="logo.r
阅读全文
posted @ 2021-01-21 17:39 wolbo
阅读(1333)
评论(0)
推荐(0)
2021年1月18日
grpc c++ 设置断线重连时间
摘要: grpc客户端断线重连使用backoff机制 重连间隔越来越长 可以通过参数指定相关参数 相关参数: https://grpc.github.io/grpc/core/group__grpc__arg__keys.html#gad7d9d143858d8f5e138cf704b0082973 相关代
阅读全文
posted @ 2021-01-18 16:23 wolbo
阅读(2847)
评论(0)
推荐(0)
2021年1月13日
QTimer timeout不触发的原因
摘要: 1 没有调用start方法 2 SLOT(xxx) 槽函数xxx没带括号 应该是 connect(timer, SIGNAL(timeout()), this, SLOT(xxx())); 3 槽函数未声明为槽函数 4 事件循环没有机会执行事件 无限循环中可以调用QApplication::Proc
阅读全文
posted @ 2021-01-13 10:24 wolbo
阅读(6402)
评论(0)
推荐(1)
2021年1月7日
administrator获取管理员权限
摘要: 将以下两个禁用掉 完整管理员权限 https://superuser.com/questions/1002262/run-applications-as-administrator-by-default-in-windows-10 参考: https://answers.microsoft.com/
阅读全文
posted @ 2021-01-07 14:40 wolbo
阅读(380)
评论(0)
推荐(0)
文件批量重命名
摘要: for file in *.png; do mv "$file" "${file%.png}_3.6.14.png" done for file in `find -name "*.old"` ; do mv ${file} ${file%.old}; done; 使用find -exec find
阅读全文
posted @ 2021-01-07 13:33 wolbo
阅读(97)
评论(0)
推荐(0)
2021年1月5日
批量转文件编码 gb2312->utf-8
摘要: for file in `find . -type f -name "*.hpp"`; do mv "$file" "$file.old" && iconv -f GB2312 -t UTF-8 < "$file.old" > "$file" && rm -rf "$file.old" done 参
阅读全文
posted @ 2021-01-05 13:38 wolbo
阅读(547)
评论(0)
推荐(0)
2020年12月26日
在文件开始追加一行
摘要: 在文件开始追加一行 1 使用sed(会改变文件编码为utf-8) find -name "*.cpp" -exec sed -i '1s@^@added line\n@' {} \; #sed insert append #第一行行前插入一行 sed -i '1i added line' main.
阅读全文
posted @ 2020-12-26 11:19 wolbo
阅读(462)
评论(0)
推荐(0)
2020年12月22日
c++ 日期时间工具
摘要: 简易的日期时间工具: #include <iostream> #include <sstream> #include <time.h> #include<chrono> #include<iomanip> #include<glog/logging.h> namespace DateTimeUtil
阅读全文
posted @ 2020-12-22 10:42 wolbo
阅读(336)
评论(0)
推荐(0)
2020年12月19日
windows c++找不到time.h sys/types.h
摘要: 1 time.h在ucrt(通用c运行库)里,同理syst/types.h也在这 2 查看vs include配置 3 打开visual studio installler 安装此版本sdk
阅读全文
posted @ 2020-12-19 15:57 wolbo
阅读(3149)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
21
下一页
公告