代码改变世界

char* []

2024-03-21 10:44 by @学无止境, 1 阅读, 0 推荐, 收藏, 编辑
摘要:// strlen 不计'\0',sizeof 计'\0'(都查字节个数) char x[] = "abcdefg中中"; char y[] = { 'a','b','c','d','e','f','g','中','\0' }; cout << "length x-->" << strlen(x) 阅读全文

C++ pointer

2024-03-18 12:07 by @学无止境, 1 阅读, 0 推荐, 收藏, 编辑
摘要:int* pInt = new int; *pInt = 5; cout << " " << endl; cout << "&(*pInt)-->" << &(*pInt) << endl; cout << "pInt-->" << pInt << endl; cout << "&pInt-->" 阅读全文

Qt 自定义控件

2024-03-11 18:01 by @学无止境, 33 阅读, 0 推荐, 收藏, 编辑
摘要:参考: https://blog.csdn.net/danshiming/article/details/134383612 https://blog.csdn.net/u011832219/article/details/128531359 1、创建自定义控件 新建qt项目(项目1),选择其他项目 阅读全文

gdialog

2024-03-11 09:01 by @学无止境, 5 阅读, 0 推荐, 收藏, 编辑
摘要:#! /bin/sh #gdialog --title "Question" --msgbox "Welcometo my survey" 9 18 gdialog --title "Confirm" --yesno "Are you willing to take part?" 9 18 #ech 阅读全文

VMware Horizon 6 部署

2023-09-06 14:35 by @学无止境, 40 阅读, 0 推荐, 收藏, 编辑
摘要:参考: https://blog.51cto.com/zhangzhk/2352758 所需软件包: https://pan.baidu.com/s/16smuSMLAgwFWqN_XbTP_MA 提取码: nrhw 前提条件是已安装好vCenter,并在vCenter上添加了EXSi主机(至少一台 阅读全文

Qt翻译文本

2023-07-13 14:02 by @学无止境, 14 阅读, 0 推荐, 收藏, 编辑
摘要:参考: https://blog.csdn.net/zzxfbdfhbdfhbdb/article/details/126749827 xxx.ts 翻译文件 xxx.qm 由xxx.ts发布生成,在程序中加载的文件 1、生成xxx.ts文件 在程序的.pro文件中添加 TRANSLATIONS + 阅读全文

qt程序打包部署

2023-06-21 14:27 by @学无止境, 37 阅读, 0 推荐, 收藏, 编辑
摘要:参考: https://blog.csdn.net/zyhse/article/details/106381937/https://blog.csdn.net/sksukai/article/details/107325930https://blog.csdn.net/langshuibaren/a 阅读全文

qt创建调用动态库、静态库

2023-06-16 16:34 by @学无止境, 949 阅读, 1 推荐, 收藏, 编辑
摘要:参考 https://www.cnblogs.com/skynet/p/3372855.html windows下 1、创建动态库、静态库 方法参考:https://blog.csdn.net/m0_67254672/article/details/123072198 动态、静态创建时区别为库的类型 阅读全文

centos 7 部署puppet及应用

2023-05-19 11:52 by @学无止境, 90 阅读, 0 推荐, 收藏, 编辑
摘要:安装参考: https://jingyan.baidu.com/article/5553fa8298cf9c65a239342b.htmlhttps://www.cnblogs.com/eastson/p/6056456.html 在服务端及客户端/etc/hosts中添加 127.0.0.1 lo 阅读全文

keepalived+haproxy+apache 实现负载均衡与高可用

2023-04-20 17:36 by @学无止境, 45 阅读, 0 推荐, 收藏, 编辑
摘要:参考体系结构 1、在两台HAProxy服务器上安装Haproxy和keepalived yum -y install keepalived haproxy 2、修改配置文件:/etc/haproxy/haproxy.cfg cp /etc/haproxy/haproxy /etc/haproxy/h 阅读全文