上一页 1 2 3 4 5 6 ··· 88 下一页

2023年12月28日

mysql5.7 wait_timeout (转)

摘要: 参考:https://blog.csdn.net/ivory_town1/article/details/77702357 1.修改参数配置文件 vi /etc/my.cnf [mysqld] wait_timeout = 28800 interactive_timeout = 28800 #增加以 阅读全文

posted @ 2023-12-28 13:39 xihong 阅读(19) 评论(0) 推荐(0) 编辑

std::max、std::min error C2589: “(”:“::”右边的非法标记,error C2059: 语法错误:“::” (转)

摘要: 个人采用方案三解决问题。 在VC++种同时包含头文件#include <windows.h>和#include <algorithm>后就会出现无法正常使用std标准库中的min和max模板函数,经过查阅发现这是因为在Windows.h种也有min和max的定义,这样就导致了algorithm中的m 阅读全文

posted @ 2023-12-28 12:07 xihong 阅读(103) 评论(0) 推荐(0) 编辑

E1097 未知特性 “no_init_all“(转)

摘要: 在我使用最新(2019.5.12)的VS2019(版本号16.0.3)时,编译器弹出了如标题所示错误,找不到"no_init_all"的attribute。错误源头在winnt.h这一系统头文件中。经过比对,找到了位于Microsoft Visual Studio Developer Communi 阅读全文

posted @ 2023-12-28 11:21 xihong 阅读(195) 评论(0) 推荐(0) 编辑

2023年12月24日

C++出现“printf/cout不明确”的问题的原因和解决方法(转)

摘要: 如果你有幸看到这个博客,那么我猜你应该已经碰上这个问题,而且正急着寻求方法,因此,我先把解决方法用最简单的一句话写出来解决方法为:**将文件中原有的using namespace std;删除后保存cpp文件,再加上using namespace std;保存cpp文件。问题即可解决** 如果根据上 阅读全文

posted @ 2023-12-24 09:59 xihong 阅读(155) 评论(0) 推荐(0) 编辑

2023年12月21日

Ubuntu升级cmake,可任意切换版本(转)

摘要: https://blog.csdn.net/qq_33175506/article/details/132416845 https://cmake.org/files/v3.22/ 阅读全文

posted @ 2023-12-21 13:54 xihong 阅读(24) 评论(0) 推荐(0) 编辑

2023年12月20日

两条命令搞定Ubuntu系统安装与配置VNC server实现远程桌面连接(转)

摘要: 参照下面博文地址: 1、sudo apt-get update 2、sudo apt install x11vnc 在ubuntu电脑上执行 3、x11vnc -passwd 123456 -display :0 -forever 4、windows端安装好vnc viewer,输入server端i 阅读全文

posted @ 2023-12-20 10:40 xihong 阅读(34) 评论(0) 推荐(0) 编辑

2023年12月19日

qt打开项目缺少ui_文件,使用手动生成(转)

摘要: 打开项目看到,缺少ui_myMainWindow.h文件,它是和myMainWindow.ui相对应的,所以我们需要手动生成对应的ui_文件。 步骤如下:使用uic.exe来生成,如果在系统变量Path中设置了qt的bin目录,那么就可以直接使用uic.exe。使用方法是:在myMainWindow 阅读全文

posted @ 2023-12-19 14:39 xihong 阅读(124) 评论(0) 推荐(0) 编辑

2023年11月28日

c++调用C#动态库

摘要: 成功实现C++调用C#写的库(CLR),我的个人心得与总结 https://libaineu2004.blog.csdn.net/article/details/92845918?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant. 阅读全文

posted @ 2023-11-28 08:25 xihong 阅读(42) 评论(0) 推荐(0) 编辑

2023年9月25日

Qt窗口和视口解析(转)

摘要: 目录 坐标变换流程 世界坐标、窗口坐标和设备坐标 窗口和视口 世界变换和窗口视口变换 QWidget、QGraphicsItem、QGraphicsView绘图 窗口与视口绘图测试 坐标变换流程 QPainter.drawRect(QRectF)绘制图形传入的是世界坐标,而后经过变换矩形变为窗口坐标 阅读全文

posted @ 2023-09-25 14:00 xihong 阅读(20) 评论(0) 推荐(0) 编辑

2023年9月12日

ubuntu通过.sh实现快捷启动——打开多个终端并自动执行多个程序(转)

摘要: gnome-terminal --tab -- bash -c "ifconfig;exec bash" gnome-terminal --tab -- bash -c "ls;exec bash" [Desktop Entry]Name=检查从站状态Exec=gnome-terminal --ta 阅读全文

posted @ 2023-09-12 16:05 xihong 阅读(131) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 88 下一页

导航