<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[MDakuya的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/MDakuya</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; MDakuya]]></copyright><item><title><![CDATA[折半查找(适用于顺序数组)]]></title><link>https://blog.csdn.net/MDakuya/article/details/102652574</link><guid>https://blog.csdn.net/MDakuya/article/details/102652574</guid><author>MDakuya</author><pubDate>Sun, 20 Oct 2019 19:56:38 +0800</pubDate><description><![CDATA[折半查找的思路：

在顺序数组中，找到初始值(最小值),中间值，最大值，分别以low,mid,high表示。
然后进行循环查找，例如图：low=1,high=16,mid=(low+high)/2
如果key值刚好等于中间值mid，则返回中间值。
如果所求值key比中间值大，则在mid与high之间在进行第二次查找，并把新的low值赋值成mid+1,high值不变，再求新的mid值，如此循环，循环...]]></description><category></category></item><item><title><![CDATA[求数字是几位数，顺序以及逆序输出各位数字]]></title><link>https://blog.csdn.net/MDakuya/article/details/102637779</link><guid>https://blog.csdn.net/MDakuya/article/details/102637779</guid><author>MDakuya</author><pubDate>Sat, 19 Oct 2019 13:57:42 +0800</pubDate><description><![CDATA[给一个不多于5位的正整数，要求：
1.求出它是几位数；
2.分别输出每一位数字；
3.按逆序输出各位数字，例如原数为321，应输出123.
代码如下
#include&lt;stdio.h&gt;
#include&lt;math.h&gt;
int Count(int long long n)//求一个整数的位数
{
	int temp = 0;//初始化一个值
	if(n == 0)
	{
	...]]></description><category></category></item></channel></rss>