<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[michaelafeng的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/michaelafeng</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; michaelafeng]]></copyright><item><title><![CDATA[vmware+ubuntu22.04新装常见问题]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/157846799</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/157846799</guid><author>michaelafeng</author><pubDate>Sun, 08 Feb 2026 14:33:37 +0800</pubDate><description><![CDATA[初学Linux，在这边记录下遇到的问题]]></description><category></category></item><item><title><![CDATA[QT编译时，提示error: C1083: 无法打开包括文件: “stddef.h”: No such file or directory解决方法]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/145667260</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/145667260</guid><author>michaelafeng</author><pubDate>Sun, 16 Feb 2025 17:20:48 +0800</pubDate><description><![CDATA[4.单个组件中确认是否安装MSVC v142 - VS 2019 C++ x64/x86 生成工具。3.单个组件中确认是否安装Windows 10SDK，一个就行。1.工作负荷中确认是否安装c++桌面开发。2.单个组件中确认是否安装C++核心功能。qt版本5.14.2，VS2019。]]></description><category></category></item><item><title><![CDATA[自己写的qt程序在别人电脑上运行不了]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/135403392</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/135403392</guid><author>michaelafeng</author><pubDate>Fri, 05 Jan 2024 10:34:39 +0800</pubDate><description><![CDATA[3.使用QT自带的windeployqt工具命令，格式：windeployqt XXX.exe。windeployqt可以搜索指定程序需要的所有依赖库，并自动复制到程序所在目录。另外，windeployqt只复制qt依赖库，不包含自定义的图像、文本等资源，需要自己复制。2.在命令行cd到自己写的程序的exe所在的文件夹。写个日志用作自己学习。1.打开qt命令工具。]]></description><category></category></item><item><title><![CDATA[QT配置Opencv环境]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/132571127</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/132571127</guid><author>michaelafeng</author><pubDate>Tue, 29 Aug 2023 22:09:50 +0800</pubDate><description><![CDATA[5.库文件选择到opencv的opencv\build\x64\vc15\lib\opencv_world450.lib，包含路径也会自动生成，先不管。6.双击pro文件，找到最下面，把路径改到bulid/include。2.QT创建好项目，启动设置为Release；7.我们打印下opencv的版本测试下，OK。1.从官网下载QT&opencv，并安装；3.右击项目名称，选择添加库。]]></description><category></category></item><item><title><![CDATA[VS2019配置opencv环境]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/132568095</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/132568095</guid><author>michaelafeng</author><pubDate>Tue, 29 Aug 2023 19:10:08 +0800</pubDate><description><![CDATA[VS2019&opencv安装及配置]]></description><category></category></item><item><title><![CDATA[ubuntu 安装g++ 时提示maybe run apt-get update or try with --fix-missing]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/130850992</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/130850992</guid><author>michaelafeng</author><pubDate>Wed, 24 May 2023 17:00:54 +0800</pubDate><description><![CDATA[安装失败提示maybe run apt-get update or try with --fix-missing。此时，用g++ -v 查看也没有版本信息。再重新安装g++就OK啦。]]></description><category></category></item><item><title><![CDATA[c++生成Dll给c#调用]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/129198731</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/129198731</guid><author>michaelafeng</author><pubDate>Fri, 24 Feb 2023 13:15:29 +0800</pubDate><description><![CDATA[c++生成动态链接库Dll，c#调用]]></description><category></category></item><item><title><![CDATA[C# 动态加载dll事件处理]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/129009170</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/129009170</guid><author>michaelafeng</author><pubDate>Mon, 13 Feb 2023 14:57:56 +0800</pubDate><description><![CDATA[dll动态加载处理委托事件]]></description><category></category></item><item><title><![CDATA[C# 窗体调用和回调]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/128919162</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/128919162</guid><author>michaelafeng</author><pubDate>Tue, 07 Feb 2023 15:40:37 +0800</pubDate><description><![CDATA[【代码】C# 窗体调用和回调。]]></description><category></category></item><item><title><![CDATA[c# 类似Excel的趋势线拟合]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/122297821</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/122297821</guid><author>michaelafeng</author><pubDate>Tue, 04 Jan 2022 10:32:25 +0800</pubDate><description><![CDATA[vs选择工具-&gt;NuGet包管理器-&gt;程序包管理器控制台-&gt;输入Install-Package MathNet.Numerics进行安装


//如果是一次线性的话,走这里
if (m_order_num == (int)OrderEnum.one)
{
    Tuple&lt;double, double&gt; s = new Tuple&lt;double, double&gt;(0, 0);
    s = Fit.Line(X_arr, Y_arr);
    //y = k*]]></description><category></category></item><item><title><![CDATA[c# 简单的继承]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/121376916</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/121376916</guid><author>michaelafeng</author><pubDate>Wed, 17 Nov 2021 14:17:19 +0800</pubDate><description><![CDATA[项目结构：



界面：





Form1.cs 代码 ：


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namesp.]]></description><category></category></item><item><title><![CDATA[c# 两个类之间的回调]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/121375878</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/121375878</guid><author>michaelafeng</author><pubDate>Wed, 17 Nov 2021 13:21:11 +0800</pubDate><description><![CDATA[using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;

namespace exe3
{
]]></description><category></category></item><item><title><![CDATA[win10系统vscode、sublime等无法全局搜索]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/121325973</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/121325973</guid><author>michaelafeng</author><pubDate>Sun, 14 Nov 2021 23:33:41 +0800</pubDate><description><![CDATA[原因：和win10自带的输入法冲突了。

解决方法：

1.右击屏幕右下角的输入法，选择设置

2.打开的界面选择键盘

3.拉到最下热键，把简繁切换关闭即可




]]></description><category></category></item><item><title><![CDATA[vs2019 winform打开项目不显示界面]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/121325889</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/121325889</guid><author>michaelafeng</author><pubDate>Sun, 14 Nov 2021 23:27:54 +0800</pubDate><description><![CDATA[今天，遇到一个问题：打开其他项目不显示winform的界面。

解决方法：工具-&gt;获取工具和功能，在打开的界面选择单个组件，在里面找到如下图的组件勾上安装即可。




]]></description><category></category></item><item><title><![CDATA[lua-表达式字符串类型转表达式结果]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/118218394</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/118218394</guid><author>michaelafeng</author><pubDate>Fri, 25 Jun 2021 13:15:57 +0800</pubDate><description><![CDATA[例如：1 + 2 = 3


local str = "1 + 2"
print("str=",str)

打印得到的是字符串 1+2。那么想得到1+2的结果就要


local str = "return 1+2"
print("result=",loadstring(str)())


]]></description><category></category></item><item><title><![CDATA[c#常见面试题:任意给定奇数个整数,其中仅有一个整数出现了奇数次]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/117690786</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/117690786</guid><author>michaelafeng</author><pubDate>Tue, 08 Jun 2021 10:02:14 +0800</pubDate><description><![CDATA[eg:1,7,3,4,11,1,13,6,11,7,4,13,1,6,1 -&gt; 3



方法一:比较low的方法




]]></description><category></category></item><item><title><![CDATA[C#常问面试题:装箱和拆箱]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/117460052</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/117460052</guid><author>michaelafeng</author><pubDate>Wed, 02 Jun 2021 09:43:05 +0800</pubDate><description><![CDATA[c#

C#中定义的值类型包括原类型（Sbyte、Byte、Short、Ushort、Int、Uint、Long、Ulong、Char、Float、Double、Bool、Decimal）、枚举(enum)、结构(struct)，引用类型包括：类、数组、接口、委托、字符串等。
]]></description><category></category></item><item><title><![CDATA[c++之重载]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/117374835</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/117374835</guid><author>michaelafeng</author><pubDate>Fri, 28 May 2021 21:56:03 +0800</pubDate><description><![CDATA[重载指函数名相同，函数的参数列表不同（包含参数个数和参数类型），至于返回类型可同可不同。

1.函数重载

2.运算符重载
]]></description><category></category></item><item><title><![CDATA[c++简析多态]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/117337878</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/117337878</guid><author>michaelafeng</author><pubDate>Thu, 27 May 2021 21:06:09 +0800</pubDate><description><![CDATA[1.多态是面向对象的三大特性之一，字面意思是多种状态，可以看成是接口的多种不同实现方式。

2.实现多态的步骤：

①子类重写父类的虚函数；

②
]]></description><category></category></item><item><title><![CDATA[c++设计模式之单例模式]]></title><link>https://blog.youkuaiyun.com/michaelafeng/article/details/116867264</link><guid>https://blog.youkuaiyun.com/michaelafeng/article/details/116867264</guid><author>michaelafeng</author><pubDate>Sat, 15 May 2021 23:36:23 +0800</pubDate><description><![CDATA[常用的软件设计模式,在它的核心结构中只包含一个被称为单例的特殊类；
	
	
	通过单例模式可以保证系统中只有一个实例且该实例易于外界访问，从而方便对实例个数的控制并节约系统资源
	

#include "stdafx.h"
#include "stdio.h"
#include &lt;iostream&gt;
using namespace std;

class SingleTone {
private:
	SingleTone();
	static SingleTone* instance;
pu..]]></description><category></category></item></channel></rss>