会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Joyful
我习于冷 志于成冰.
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
7
下一页
2025年10月29日
vmware ubuntu实现双向复制
摘要: sudo apt-get install open-vm-tools sudo apt-get install open-vm-tools-desktop sudo reboot
阅读全文
posted @ 2025-10-29 09:45 joyfulest
阅读(7)
评论(0)
推荐(0)
2025年10月16日
编译protobuf库生成库文件等
摘要: ✅ 一、前提准备 确保你已经安装了以下工具: CMake ≥ 3.15 Visual Studio (VS2019 或 VS2022),含命令行工具 Git(可选) 已下载并解压的 protobuf-3.19.6 源码 假设源码路径为: C:\src\protobuf-3.19.6 ✅ 二、设置环境
阅读全文
posted @ 2025-10-16 16:00 joyfulest
阅读(40)
评论(0)
推荐(0)
2025年7月15日
Qt检测方法执行耗时
摘要: 头文件 #include <QElapsedTimer > 使用方法:(在方法中加入) // 在解析函数开头测耗时QElapsedTimer timer;timer.start(); // 你的解析代码 qDebug() << "解析耗时:" << timer.elapsed() << "ms";或
阅读全文
posted @ 2025-07-15 13:15 joyfulest
阅读(15)
评论(0)
推荐(0)
2025年7月14日
QByteArray::mid 详解
摘要: QByteArray::mid 用于从一个 QByteArray 中提取指定范围的子数组,而无需修改原始数据。 函数原型: QByteArray QByteArray::mid(int pos, int len = -1) const; 参数解释 pos: 起始位置(从0开始的索引)。 如果 pos
阅读全文
posted @ 2025-07-14 16:18 joyfulest
阅读(109)
评论(0)
推荐(0)
2024年7月18日
C++标准库查询工具
摘要: windows下: 中文:cppreference.com 英文:cplusplus.com/reference/ linux下:linux 下使用 man 查看 c++ 库函数_linux man 可以查看c++库的命令吗-CSDN博客
阅读全文
posted @ 2024-07-18 10:14 joyfulest
阅读(45)
评论(0)
推荐(0)
2024年1月5日
力扣459
摘要: (想法偏了,以后回来重写) 官方解答: class Solution { public: bool repeatedSubstringPattern(string s) { return (s + s).find(s, 1) != s.size(); } };
阅读全文
posted @ 2024-01-05 17:09 joyfulest
阅读(8)
评论(0)
推荐(0)
2024年1月4日
力扣242
摘要: 我的答案: class Solution { public: bool isAnagram(string s, string t) { int s1 = 0; int t1 = 0; for (char ss : s) { s1 += ss; } for (char tt : t) { t1 +=
阅读全文
posted @ 2024-01-04 11:28 joyfulest
阅读(15)
评论(0)
推荐(0)
2024年1月3日
力扣28(待重写)
摘要: 正常是应该手写KMP算法 哈哈哈哈 一道题算一天 ,最后先搁置吧,看完kmp再写 代码: class Solution { public: int strStr(string haystack, string needle) { return haystack.find(needle); } };
阅读全文
posted @ 2024-01-03 16:29 joyfulest
阅读(10)
评论(0)
推荐(0)
2024年1月2日
力扣389
摘要: 我的答案: class Solution { public: char findTheDifference(string s, string t) { int s1 = 0, t1 = 0, val = 0; for (char ss : s) { int asciiValue = static_c
阅读全文
posted @ 2024-01-02 14:11 joyfulest
阅读(12)
评论(0)
推荐(0)
2023年12月29日
力扣1185
摘要: 我的答案:(变量名随便起的,不规范) class Solution { public: string dayOfTheWeek(int day, int month, int year) { std::string site[7] = {"Monday", "Tuesday", "Wednesday
阅读全文
posted @ 2023-12-29 15:55 joyfulest
阅读(9)
评论(0)
推荐(0)
1
2
3
4
5
···
7
下一页
公告