摘要: 1 #include <QtWidgets/QApplication> 2 #include <QSharedMemory> 3 #include <QMessageBox> 4 5 int AssumeSingleInstance(const QString &key) 6 { 7 static 阅读全文
posted @ 2024-03-22 09:06 冥天笑 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1 void QwatchDogService::OnTimeoutLable() 2 { 3 QDateTime current_date_time = QDateTime::currentDateTime(); 4 QString current_date = current_date_time 阅读全文
posted @ 2024-03-06 16:36 冥天笑 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1、List<Double> 1 List<Double> dMoneyList = objList.stream().map(e->e.getDTotalMoney()/*复杂List中包含的double数值*/).collect(Collectors.toList()); 2 Double to 阅读全文
posted @ 2023-12-11 10:32 冥天笑 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1、示例xml文件 1 <?xml version="1.0" encoding="utf-8"?> 2 <soap:Envelope 3 xmlns:xsi="http://ww.w3.org/2001/XMLSchema-instance" 4 xmlns:xsd="http://www.w3. 阅读全文
posted @ 2023-11-08 11:00 冥天笑 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h> #include <iostream> int main() { int nScreenIndex = 0; bool bIsLocked = false; //获取系统指标,判断当前屏幕是否处于锁屏状态 if (GetSystemMetrics(nScre 阅读全文
posted @ 2023-09-15 14:49 冥天笑 阅读(108) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-08-31 09:32 冥天笑 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 一、valgrind安装 在线安装 红帽系:yum install valgrind 得班系:apt-get install valgrind 离线安装 valgrind下载: http://valgrind.org/downloads/valgrind-3.12.0.tar.bz2 valgrin 阅读全文
posted @ 2023-05-31 10:35 冥天笑 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 杀死僵尸进程,方法三比较好用,推荐使用 1、查看所有的僵尸进程 ps -A -ostat,pid,ppid | grep -e '[zZ]' 例:Z 110 101 这列出了僵尸进程STAT列,进程ID、父进程ID 2、杀死所有僵尸进程 方法一:通过向父进程发送信号方式杀死,这种方法适用用父进程可以 阅读全文
posted @ 2023-05-12 09:23 冥天笑 阅读(1860) 评论(0) 推荐(0) 编辑
摘要: 1 class CClassXmlGet 2 { 3 public: 4 CClassXmlGet(void); 5 ~CClassXmlGet(); 6 /***********************************/ 7 bool InitXmlInfo(std::string str 阅读全文
posted @ 2023-04-26 08:55 冥天笑 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1、类函数中定义一个map表 typedef int (CClassTest::*pfnMethodExe)(std::string strInput,int nInputNum); std::map<std::string, pfnMethodExe> m_fnMethodExecute; CCl 阅读全文
posted @ 2023-04-07 14:47 冥天笑 阅读(20) 评论(0) 推荐(0) 编辑