摘要: errorMessage = errorMessage + "重启?"; QMessageBox msgBox(QMessageBox::Critical, "即将关闭", errorMessage, QMessageBox::NoButton, nullptr); msgBox.addButton 阅读全文
posted @ 2024-05-30 15:15 东岸 阅读(3) 评论(0) 推荐(0) 编辑
摘要: OKbutton->setStyleSheet( "QPushButton {background-color:#E5E5E5;border-radius:8px;border: 1px solid rgba(128, 128, 128, 1);color:rgb(56, 56, 56);font- 阅读全文
posted @ 2024-05-29 13:29 东岸 阅读(1) 评论(0) 推荐(0) 编辑
摘要: push->setStyleSheet( "QPushButton {background-color:rgba(212, 48, 48, 1);border-radius:7px;}" "QPushButton:hover {background-color: rgba(212, 38, 38, 阅读全文
posted @ 2024-05-29 09:57 东岸 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 例如 void a(){return;} 消耗8个cpu指令,0.4ns 1 秒钟内,这个函数可以运行的次数可以计算如下: 1 秒 = 1,000,000,000 纳秒 函数运行时间 = 0.4 纳秒 运行次数 = 1,000,000,000 纳秒 / 0.4 纳秒 = 2,500,000,000 阅读全文
posted @ 2024-05-28 14:32 东岸 阅读(3) 评论(0) 推荐(0) 编辑
摘要: .h #ifndef FILE_UTIL_H #define FILE_UTIL_H #include <string> void donghaodebug(const std::string& content); #endif // FILE_UTIL_H .cpp #include "dongh 阅读全文
posted @ 2024-05-28 13:32 东岸 阅读(2) 评论(0) 推荐(0) 编辑
摘要: is a 64 bit executable which can not be debugged by a 32 bit Debugger. Please select a 64 bit Debugger in the kit settings for this kit. 将kit套件中的debug 阅读全文
posted @ 2024-05-28 10:54 东岸 阅读(2) 评论(0) 推荐(0) 编辑
摘要: https://chat.baidu.com 百度ai搜索助手,用了很多国内ai,这个算是很好用的ai 主要特点就是能够对很多网站的内容进行整合,而且显示结果之后,会显示信息来源的网站,有数据可循,不至于像其他ai一样信口开河 https://yiyan.baidu.com/ 文心一言 也是很好用的 阅读全文
posted @ 2024-05-24 09:56 东岸 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 单例模式是一种创建型设计模式,它保证一个类仅有一个实例,并提供一个全局访问点来访问这个唯一实例。下面是一个简单的C++实现单例模式的例子: cpp #include <iostream> #include <mutex> class Singleton { private: static Singl 阅读全文
posted @ 2024-05-23 17:38 东岸 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 在 Windows 系统中,可以使用以下几种方法来获取文件的哈希值: 使用 PowerShell 在 PowerShell 中运行以下命令即可计算文件的 SHA256 哈希值: Get-FileHash -Path <文件路径> -Algorithm SHA256 其中 <文件路径> 是待计算哈希值 阅读全文
posted @ 2024-05-23 15:02 东岸 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 整数数组的一个 排列 就是将其所有成员以序列或线性顺序排列。 例如,arr = [1,2,3] ,以下这些都可以视作 arr 的排列:[1,2,3]、[1,3,2]、[3,1,2]、[2,3,1] 。 整数数组的 下一个排列 是指其整数的下一个字典序更大的排列。更正式地,如果数组的所有排列根据其字典 阅读全文
posted @ 2024-05-23 14:00 东岸 阅读(4) 评论(0) 推荐(0) 编辑