<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[qqyang_的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qqyang_</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qqyang_]]></copyright><item><title><![CDATA[Flutter时间转换工具类]]></title><link>https://blog.csdn.net/qqyang_/article/details/128189060</link><guid>https://blog.csdn.net/qqyang_/article/details/128189060</guid><author>qqyang_</author><pubDate>Mon, 05 Dec 2022 16:32:50 +0800</pubDate><description><![CDATA[时间转换]]></description><category></category></item><item><title><![CDATA[选择排序]]></title><link>https://blog.csdn.net/qqyang_/article/details/120937021</link><guid>https://blog.csdn.net/qqyang_/article/details/120937021</guid><author>qqyang_</author><pubDate>Sun, 21 Nov 2021 23:49:06 +0800</pubDate><description><![CDATA[#include&lt;iostream&gt;
using namespace std;
 
void swap(int &amp;x, int &amp;y)
{
	int tmp;
	tmp = x;
	x = y;
	y = tmp;
}
 
void selectSort(int a[], int n)
{
	int i, j, pos;
	for(i = 0; i &lt; n - 1; i++)//进行n-1次选择
	{
		pos = i; //pos记录最小元素的位置
		for(j =.]]></description><category></category></item><item><title><![CDATA[冒泡排序]]></title><link>https://blog.csdn.net/qqyang_/article/details/120937038</link><guid>https://blog.csdn.net/qqyang_/article/details/120937038</guid><author>qqyang_</author><pubDate>Sat, 30 Oct 2021 14:19:17 +0800</pubDate><description><![CDATA[#include&lt;iostream&gt;
using namespace std;
 
void swap(int &amp;x, int &amp;y)
{
	int tmp;
	tmp = x;
	x = y;
	y = tmp;
}
 
void bubbleSort1(int a[], int n)
{
	int i, j;
	for(i = 0; i &lt; n - 1; i++)
		for(j = 0; j &lt; n - 1 - i; j++)
			if(a[j] &gt; .]]></description><category></category></item><item><title><![CDATA[Golang 操作Excel文件]]></title><link>https://blog.csdn.net/qqyang_/article/details/121032868</link><guid>https://blog.csdn.net/qqyang_/article/details/121032868</guid><author>qqyang_</author><pubDate>Fri, 29 Oct 2021 13:33:08 +0800</pubDate><description><![CDATA[日常开发中会遇到处理Excel文件的相关操作，这里推荐一款应用比较广泛的操作Excel的开源工具Excelize。

Excelize是一个用Go语言编写的库，提供了一组允许您写入和读取XLSX / XLSM / XLTM文件的功能。支持读写由Microsoft Excel™2007和更高版本生成的电子表格文档。通过高度兼容性支持复杂的组件，并提供了流式API，用于从工作表中生成或读取包含大量数据的数据。该库需要Go版本1.10或更高版本。可以使用go的内置文档工具查看完整的API文档，也可以在go.dev]]></description><category></category></item><item><title><![CDATA[字符串的连接]]></title><link>https://blog.csdn.net/qqyang_/article/details/120937047</link><guid>https://blog.csdn.net/qqyang_/article/details/120937047</guid><author>qqyang_</author><pubDate>Fri, 29 Oct 2021 13:15:09 +0800</pubDate><description><![CDATA[#include&lt;iostream&gt;
using namespace std;
 
void myStrLink(char *head, char *tail)
{
   while(*head) head++; //不能写成while(*head++);
   while(*head++ = *tail++);
}
 
int main()
{
   char head[20] = "hello";
   char tail[10] = "world";
   myStrLink(head,.]]></description><category></category></item><item><title><![CDATA[希尔排序]]></title><link>https://blog.csdn.net/qqyang_/article/details/120937060</link><guid>https://blog.csdn.net/qqyang_/article/details/120937060</guid><author>qqyang_</author><pubDate>Thu, 28 Oct 2021 18:11:32 +0800</pubDate><description><![CDATA[#include&lt;iostream&gt;
using namespace std;
 
void shellSort(int a[], int n)
{
	int i, j, pivotKey, gap;
	for(gap = n/2; gap &gt; 0; gap--)
	{
		for(i = gap; i &lt; n; i++)
		{
			pivotKey = a[i];
			for(j = i - gap; j &gt;= 0 &amp;&amp; a[j] &gt; pivot.]]></description><category></category></item><item><title><![CDATA[C#中的setter和getter]]></title><link>https://blog.csdn.net/qqyang_/article/details/120937080</link><guid>https://blog.csdn.net/qqyang_/article/details/120937080</guid><author>qqyang_</author><pubDate>Mon, 25 Oct 2021 13:02:07 +0800</pubDate><description><![CDATA[C#中的setter和getter和Objective C中的setter和getter(dot syntax / 点语法)有异曲同工之妙，现简要介绍一下C#中的setter和getter:


using System;
 
class A
{
    private int data;
 
    public int MyData
    {
        set
        {
            data = value;
        }
        get
        {
]]></description><category></category></item><item><title><![CDATA[编写函数实现求余运算]]></title><link>https://blog.csdn.net/qqyang_/article/details/120936990</link><guid>https://blog.csdn.net/qqyang_/article/details/120936990</guid><author>qqyang_</author><pubDate>Sun, 24 Oct 2021 17:21:14 +0800</pubDate><description><![CDATA[#include&lt;iostream&gt;
using namespace std;
 
int mod(int x, int y)
{
	return x - x / y * y;
}
 
int main()
{
   cout &lt;&lt; 8 % 3 &lt;&lt; endl;
   cout &lt;&lt; mod(8, 3) &lt;&lt; endl;
 
   cout &lt;&lt; 8 % -3 &lt;&lt; endl;
   cout &lt;&lt; mod(8.]]></description><category></category></item><item><title><![CDATA[判断n是否为a的x次方(n, a, x都为正整数)]]></title><link>https://blog.csdn.net/qqyang_/article/details/120936984</link><guid>https://blog.csdn.net/qqyang_/article/details/120936984</guid><author>qqyang_</author><pubDate>Sun, 24 Oct 2021 17:19:56 +0800</pubDate><description><![CDATA[#include&lt;iostream&gt;
using namespace std;
 
bool isPower(int n, int a)
{
	//思路很巧妙
	while(0 == n % a)
		n /= a;
 
	if(1 == n)
		return true;
	return false;
}
 
//如果base是2，则可巧用位运算
bool is2Power(int n)
{
	return !(n &amp; (n - 1));
}
 
int main()
{
   in.]]></description><category></category></item><item><title><![CDATA[二进制中1的个数 （某公司校园招聘网测题目）]]></title><link>https://blog.csdn.net/qqyang_/article/details/120936977</link><guid>https://blog.csdn.net/qqyang_/article/details/120936977</guid><author>qqyang_</author><pubDate>Sun, 24 Oct 2021 17:19:26 +0800</pubDate><description><![CDATA[#include&lt;iostream&gt;
using namespace std;
 
int getNumber1(int n)
{
	int r = 2, sum = 0;
	while(n)//范式：整数n对应的r进制中的各位数字为下面的n % r （逆序）
	{
		if(1 == n % r)
			sum++;
		n /= r;
	}
	return  sum;
}
 
int getNumber2(int n)
{
	int sum = 0;
	while(n)
	{
		if(1.]]></description><category></category></item><item><title><![CDATA[二进制中1的个数 （某公司校园招聘网测题目）]]></title><link>https://blog.csdn.net/qqyang_/article/details/120936963</link><guid>https://blog.csdn.net/qqyang_/article/details/120936963</guid><author>qqyang_</author><pubDate>Sun, 24 Oct 2021 17:18:46 +0800</pubDate><description><![CDATA[#include&lt;iostream&gt;
using namespace std;
 
int getNumber1(int n)
{
	int r = 2, sum = 0;
	while(n)//范式：整数n对应的r进制中的各位数字为下面的n % r （逆序）
	{
		if(1 == n % r)
			sum++;
		n /= r;
	}
	return  sum;
}
 
int getNumber2(int n)
{
	int sum = 0;
	while(n)
	{
		if(1.]]></description><category></category></item><item><title><![CDATA[打印前20个平凡数（某公司校园招聘笔试题目）]]></title><link>https://blog.csdn.net/qqyang_/article/details/120936954</link><guid>https://blog.csdn.net/qqyang_/article/details/120936954</guid><author>qqyang_</author><pubDate>Sun, 24 Oct 2021 17:17:50 +0800</pubDate><description><![CDATA[humble数的定义：humber = pow(2, a1) * pow(3, a2) * pow(5, a3) * pow(7, a4); 其中 a1, a2, a3, a4均为非负整数，且不全为0; 打印前20个平凡数的程序为：


#include&lt;iostream&gt;
using namespace std;
 
bool isHumbleNumber(int number)
{
	while(number % 2 == 0)
		number /= 2;
	while(number % ]]></description><category></category></item><item><title><![CDATA[素数判断（某公司实习生招聘笔试题目）]]></title><link>https://blog.csdn.net/qqyang_/article/details/120936937</link><guid>https://blog.csdn.net/qqyang_/article/details/120936937</guid><author>qqyang_</author><pubDate>Sun, 24 Oct 2021 17:17:01 +0800</pubDate><description><![CDATA[设N(N &gt;=4)为合数，则必有N = i * j; 1 &lt; i, j &lt; N, 不妨设 i &lt;=j, 则有 2 &lt;= i &lt;= floor(sqrt(N)), 也就是说，如果N为合数，则必有因子在2到floor(sqrt(N))之间，素数判断程序如下：


#include&lt;iostream&gt;
#include&lt;cmath&gt;
using namespace std;
 
bool isPrime(int n)
{
	if(n &lt; 2)...]]></description><category></category></item><item><title><![CDATA[利用递归求阶乘（某公司校园招聘笔试题目）]]></title><link>https://blog.csdn.net/qqyang_/article/details/120936924</link><guid>https://blog.csdn.net/qqyang_/article/details/120936924</guid><author>qqyang_</author><pubDate>Sun, 24 Oct 2021 17:16:21 +0800</pubDate><description><![CDATA[#include&lt;iostream&gt;
using namespace std;
 
int fun(int n)
{
	if(0 == n)
		return 1;
	return n * fun(n - 1);
}
 
int main()
{
	cout &lt;&lt; fun(5) &lt;&lt; endl;
	return 0;
}



]]></description><category></category></item><item><title><![CDATA[单例模式(某公司校园招聘笔试题目)]]></title><link>https://blog.csdn.net/qqyang_/article/details/120936891</link><guid>https://blog.csdn.net/qqyang_/article/details/120936891</guid><author>qqyang_</author><pubDate>Sun, 24 Oct 2021 17:15:28 +0800</pubDate><description><![CDATA[单例（singleton）模式, 顾名思义，也就是说类只有一个实例。在计划生育很普遍的今天，我们很容易理解单例模式：首先判断这个家庭是否生了一个孩子，如果没有生，则允许这个家庭生一个，如果已经生了一个，就不能再生孩子了。

   如果外界需要知道这个家庭的信息，那么只需要问该家庭的一个孩子就可以了。如果外界需要10询问这个家庭的信息，没有必要问这个家庭的10个孩子。相反，只需要10次问同一个孩子就可以了，可见，有时候，一个孩子已经足够给外界提供信息。很多人说，孩子生得太多了，花销大。这就是单例！

...]]></description><category></category></item><item><title><![CDATA[两个小程序入门C#]]></title><link>https://blog.csdn.net/qqyang_/article/details/120936875</link><guid>https://blog.csdn.net/qqyang_/article/details/120936875</guid><author>qqyang_</author><pubDate>Sun, 24 Oct 2021 17:13:31 +0800</pubDate><description><![CDATA[语言是用来表达思想的，语言虽然千差万别，但也大同小异，下面以两个非常简单的控制台应用程序来入门C#

程序1:


using System;
 
class Example
{
    static void Main()
    {
        int[] a = new int[10];   //注意和C/C++相区别
        int i;
        for (i = 0; i &lt; 10; i++)
            a[i] = i;
 
        for (i ]]></description><category></category></item><item><title><![CDATA[APM - Prometheus监控系统初探]]></title><link>https://blog.csdn.net/qqyang_/article/details/120936758</link><guid>https://blog.csdn.net/qqyang_/article/details/120936758</guid><author>qqyang_</author><pubDate>Sun, 24 Oct 2021 17:07:45 +0800</pubDate><description><![CDATA[Wiki
https://en.wikipedia.org/wiki/Prometheus_(software)

Prometheus 是从 2012 年开始在SoundCloud开发的， 当时该公司发现他们现有的指标和监控解决方案（使用 StatsD 和Graphite）不足以满足他们的需求。

具体而言，他们确定了 Prometheus 旨在满足的需求，包括：多维数据模型、操作简单、可扩展的数据收集和强大的查询语言，所有这些都在一个工具中。 该项目从一开始就是开源的，尽管没有明确宣布，但也开始被 Bo]]></description><category></category></item><item><title><![CDATA[Chia矿池搭建]]></title><link>https://blog.csdn.net/qqyang_/article/details/120879966</link><guid>https://blog.csdn.net/qqyang_/article/details/120879966</guid><author>qqyang_</author><pubDate>Thu, 21 Oct 2021 09:36:09 +0800</pubDate><description><![CDATA[...]]></description><category></category></item><item><title><![CDATA[vue 实现 excel 导入(二)]]></title><link>https://blog.csdn.net/qqyang_/article/details/120770973</link><guid>https://blog.csdn.net/qqyang_/article/details/120770973</guid><author>qqyang_</author><pubDate>Thu, 14 Oct 2021 19:35:59 +0800</pubDate><description><![CDATA[1.页面部分


&lt;template&gt;
  &lt;div class="app-container"&gt;
    &lt;!-- 导出功能 --&gt;
    &lt;div class="el-toolbar"&gt;
      &lt;div class="el-toolbar-body" style="justify-content: flex-start;"&gt;
        &lt;!-- 导出功能 --&gt;
        &lt;el-button type="]]></description><category></category></item><item><title><![CDATA[vue 实现 excel 导入(一)]]></title><link>https://blog.csdn.net/qqyang_/article/details/120770916</link><guid>https://blog.csdn.net/qqyang_/article/details/120770916</guid><author>qqyang_</author><pubDate>Thu, 14 Oct 2021 19:33:20 +0800</pubDate><description><![CDATA[1.创建监听器



import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.baiyee.sdgt.cmn.mapper.DictMapper;
import com.baiyee.sdgt.model.cmn.Dict;
import com.baiyee.sdgt.vo.cmn.DictEeVo;
import org.sprin]]></description><category></category></item></channel></rss>