摘要:
internal static class ConsoleAllocator { [DllImport(@"kernel32.dll", SetLastError = true)] static extern bool AllocConsole(); [DllImport(@"kernel32.dl 阅读全文
posted @ 2025-11-18 22:42
家煜宝宝
阅读(4)
评论(0)
推荐(0)
摘要:
大家都知道,代码中出现过多的if…else嵌套语句时很难读,所以常用switch…case语句进行代替,代码的可读性就好了很多。 举个简单的例子: public void DoSomeThing(string str) { if (str == "A") { DoSomethingForA(str) 阅读全文
posted @ 2025-11-18 22:42
家煜宝宝
阅读(6)
评论(0)
推荐(0)
摘要:
/// <summary> /// 设定Int数据中某一位的值 /// </summary> /// <param name="value">位设定前的值</param> /// <param name="index">32位数据的从右向左的偏移位索引(0~31)</param> /// <para 阅读全文
posted @ 2025-11-18 22:38
家煜宝宝
阅读(4)
评论(0)
推荐(0)
摘要:
public class PCclas { Process cur = null; PerformanceCounter curpcp = null; public string GetRam() { if (cur == null) { cur = Process.GetCurrentProces 阅读全文
posted @ 2025-11-18 22:29
家煜宝宝
阅读(5)
评论(0)
推荐(0)
摘要:
public class JsonFileHelper { public static string JsonConfigFileName = "SunSofteWareAppConfig.Json"; #region 配置文件读写 private static JsonSerializerSett 阅读全文
posted @ 2025-11-18 22:27
家煜宝宝
阅读(4)
评论(0)
推荐(0)
摘要:
svn:ignore obj bin 阅读全文
posted @ 2025-11-18 22:26
家煜宝宝
阅读(3)
评论(0)
推荐(0)
摘要:
一、QTreeWidget介绍 1. 简介QTreeWidget是Qt中的一个可视化控件,用于显示树形结构的数据。它是QTreeView的衍生类,提供了更直观易用的API来构建和管理树形结构。 QTreeWidget可用于显示和编辑树状结构的数据,每个节点可以包含一个或多个子节点。每个节点以一个图标 阅读全文
posted @ 2025-11-18 18:30
家煜宝宝
阅读(18)
评论(0)
推荐(0)
摘要:
1.右键编译一下ui文件 2.工程右边点击“重新扫描解决方案” 阅读全文
posted @ 2025-11-18 18:13
家煜宝宝
阅读(4)
评论(0)
推荐(0)
摘要:
在Qt Designer中可视化操作 如果您使用Qt Designer进行界面设计,操作会更加直观-9: 将Group Box拖放到主窗体上。 确保Group Box被选中,然后右键单击主窗体的空白区域。 选择布局菜单,然后选择一个布局方式,例如水平布局或垂直布局。您也可以直接点击工具栏上的布局按钮 阅读全文
posted @ 2025-11-18 16:39
家煜宝宝
阅读(7)
评论(0)
推荐(0)
摘要:
Lazy<T>是一个用于实现延迟初始化(Lazy Initialization)的泛型类,它可以将昂贵对象的创建推迟到第一次实际使用时。这种模式能有效提升应用程序的启动性能和资源利用率。 💡 核心概念与价值 Lazy<T>的核心思想是“按需创建”。它特别适用于以下场景: 资源密集型对象:创建成本高 阅读全文
posted @ 2025-11-18 13:35
家煜宝宝
阅读(12)
评论(0)
推荐(0)
摘要:
变量起名: https://www.chtml.cn/ https://www.jyshare.com/front-end/9443/ C# 只读List List<string> list = new List<string>(); list.Add("12321"); list.Add("fad 阅读全文
posted @ 2025-11-18 13:35
家煜宝宝
阅读(4)
评论(0)
推荐(0)
摘要:
ConcurrentDictionary 线程安全,内置同步机制支持多线程并发读写 SortedDictionary 阅读全文
posted @ 2025-11-18 13:28
家煜宝宝
阅读(3)
评论(0)
推荐(0)
摘要:
保存配置文件然后校验的一种思路,生成一个uuid,把这个uuid和配置文件一起保存,然后再读取配置文件中的uuid, 校验和保存前的是不是一样,如果一样的话就是配置文件保存成功,前提:配置文件是以一个完整的类的对象保存的 阅读全文
posted @ 2025-11-18 13:05
家煜宝宝
阅读(3)
评论(0)
推荐(0)
摘要:
Dock WeifenLuo.WinFormsUI.Docking DockPanel Suite 深克隆: DeepCloner https://github.com/force-net/DeepCloner 文本编辑器 Scintilla.NETAutoCompleteMenu-Scintill 阅读全文
posted @ 2025-11-18 11:15
家煜宝宝
阅读(11)
评论(0)
推荐(0)
摘要:
数据库 DBeaver HeidiSQL JookDB Navicat Premium Lite 虚拟机 virtualbox VMware® Workstation 流程图、类图 Draw.io:https://github.com/jgraph/drawio-desktop/releases R 阅读全文
posted @ 2025-11-18 09:24
家煜宝宝
阅读(4)
评论(0)
推荐(0)
摘要:
一、boost库介绍 Boost是一个广泛使用的C++库集合,用于提供各种功能和工具,包括算法、容器、迭代器、函数对象、数值处理和多线程编程等。Boost库的目标是扩展C++语言和标准库,为开发人员提供高质量、可移植和可重用的代码。 二、boot库编译 下载相应版本的boost源码包:https:/ 阅读全文
posted @ 2025-11-18 09:00
家煜宝宝
阅读(43)
评论(0)
推荐(0)
摘要:
std::string s1 = "这是中文"; QString s2 = QString::fromLocal8Bit(s1.data()); 阅读全文
posted @ 2025-11-18 08:46
家煜宝宝
阅读(10)
评论(0)
推荐(0)

浙公网安备 33010602011771号