<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>xianfajushi的博客</title>
    <link>https://blog.bccn.net/xianfajushi</link>
    <description>xianfajushi的博客 的最新20篇文章</description>
    <copyright>Copyright(C) BCCN.NET</copyright>
    <lastBuildDate>2026-09-07 17:25:43 +0800</lastBuildDate>
    <item>
      <title>数组元素不重复双向检测添加</title>
      <link>https://blog.bccn.net/xianfajushi/68598</link>
      <description> int a = 0, gg[14]{}, c = 0, j = 0, x = 0;
js:if (++a &amp;lt; 10000)
{
 &amp;nbsp; &amp;nbsp;x = 每个数求最小值循环黑洞万范围(a);
&amp;nbsp; &amp;nbsp;cz:if (j &amp;lt;= c - 1 - j)
&amp;nbsp; &amp;nbsp;{//注意数据奇数
 &amp;nbsp; if (x != gg[j] &amp;amp;&amp;amp; x != gg[c - 1 - j])
 &amp;nbsp; {//数据万时必须考虑循环次数影响
 &amp;nbsp; ++j;
 &amp;nbsp; goto cz;
 &amp;nbsp; }...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2026-09-07 17:25:43 +0800</pubDate>
    </item>
    <item>
      <title>自次方</title>
      <link>https://blog.bccn.net/xianfajushi/68597</link>
      <description>
	
		int 自次方(int a)
	
	
		{
	
	
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (a == 0)return 1;
	
	
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int f = a, j = 0;
	
	
		cf:if (++j &amp;lt; a)
	
	
		{
	
	
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; f *= a;
	
	
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; goto...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2026-09-02 11:57:10 +0800</pubDate>
    </item>
    <item>
      <title>51单片机LCD1602驱动和定时器时钟荔枝</title>
      <link>https://blog.bccn.net/xianfajushi/68323</link>
      <description>
	用定时器即可实现精准时钟荔枝
https://img-mid.csdnimg.cn/release/static/image/mid/ask/665327742786188.png
```
这是1602驱动荔枝,在有人机交互之后,添加任意功能都可以通过显示器辅助实现
#include &amp;lt;reg52.h&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
#define uint unsigned int
#define uchar unsigned char...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2023-06-20 16:44:39 +0800</pubDate>
    </item>
    <item>
      <title>【INT类大数阶乘约19万!2次方约290万草稿】2022-5-26</title>
      <link>https://blog.bccn.net/xianfajushi/68089</link>
      <description>普通的INT类型10万数组每元素存9位数约容纳90万位数，如果把尾部0移出来的话，容纳更多位数，尾部0可以使用科学计数法表示，尾部0移出将在运算过程中同时进行数组位移，暂时做到100000!乘法，且尾部0暂时未写移位，10万数组9位约能运算到186121!，以本例来说移出约5万个0，则约5万+90万总约可容纳95万位数据，尾部0移出后可运算到195370!，1E+46521。

	&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2wAAALHCAYAAADywMHIAAAgAElEQVR4AeydvYsdR7r/f3/...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2022-05-31 10:46:45 +0800</pubDate>
    </item>
    <item>
      <title>循环显示3-9</title>
      <link>https://blog.bccn.net/xianfajushi/67844</link>
      <description>
	


	


	
</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2022-03-21 21:08:14 +0800</pubDate>
    </item>
    <item>
      <title>二的次方数组</title>
      <link>https://blog.bccn.net/xianfajushi/67812</link>
      <description>
	今天写了二的次方函数,如之前说过的分治法是用于乘法的.https://ftpbbs.bccn.net/006/month_2202/20220222_03d32309112d2b7a2356k1y6XKt6CJdf.png&amp;nbsp;优化代码后运算速度最大化。
 


	


	
&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfoAAAKTCAYAAADxBspGAAAgAElEQVR4Aey9269l23be5T8g/xhC3OQIiFCExBMghMQLDwjERShOTBJyE9kBA3HIB...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2022-02-22 09:46:58 +0800</pubDate>
    </item>
    <item>
      <title>VB.NET大数加法</title>
      <link>https://blog.bccn.net/xianfajushi/67803</link>
      <description>
	输出需要格式化18位


	https://bbs_bccn_net.bccnsoft.com/006/month_2202/20220217_cd9c084888f35ae156b8TrlOBLbaRtHx.png
</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2022-02-17 16:37:36 +0800</pubDate>
    </item>
    <item>
      <title>【整数大加法】2022-2-16</title>
      <link>https://blog.bccn.net/xianfajushi/67802</link>
      <description>
	


	缘由问题描述 　　输入两个整数a和b，输出这两个整数的和。a和b都不超过100位。-编程语言-CSDN问答 


	今天兴致，一气呵成，构思早就完成，之前懒得写而已，数组每单元存放18位数。
一气呵成就意味着未优化，完成加法运算也就意味着四则运算同理可以完成。
其实加法控制在18位直接运算即可，这个分治思路是乘法用的。 


	


	&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfMAAAD5CAYAAAAz49yZAAAgAElEQVR4Ae19Ma/luJH1/pwXdNj...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2022-02-16 21:18:20 +0800</pubDate>
    </item>
    <item>
      <title>51单片机90秒倒计时每5秒蜂鸣一响倒计时完成长鸣</title>
      <link>https://blog.bccn.net/xianfajushi/67796</link>
      <description></description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2022-02-14 20:49:35 +0800</pubDate>
    </item>
    <item>
      <title>判断含相同数字</title>
      <link>https://blog.bccn.net/xianfajushi/67794</link>
      <description>bool 判断含相同数字(_int64 数)
{//缘由https://ask.csdn.net/questions/7638703?spm=1005.2025.3001.5141
	_int64 m1 = 1, m2 = 1;
	while (数 &amp;gt; 9 &amp;amp;&amp;amp; 数 / m1)
	{
		if (数 / m1 % 10 != 数 / m2 % 10 || m1 == m2)
			m2 *= 10;
		else
			return 0;
		if (数 / m2 == 0)
			m1 *= 10, m2 = 1;
	}
	return 1...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2022-02-03 18:48:06 +0800</pubDate>
    </item>
    <item>
      <title>按升序输出三个数</title>
      <link>https://blog.bccn.net/xianfajushi/67793</link>
      <description>void 按升序输出三个数()
{//缘由https://ask.csdn.net/questions/7638568?spm=1005.2025.3001.5141
	int a = 0, b = 0, c = 0;
	scanf_s("%d%d%d", &amp;amp;a, &amp;amp;b, &amp;amp;c);
	if (a &amp;gt; c)算交换(a, c);
	if (a &amp;gt; b)算交换(a, b);
	if (b &amp;gt; c)算交换(b, c);
	printf("%d-&amp;gt;%d-&amp;gt;%d", a, b, c);
}</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2022-02-02 20:20:48 +0800</pubDate>
    </item>
    <item>
      <title>值得典藏经典算法两则</title>
      <link>https://blog.bccn.net/xianfajushi/67790</link>
      <description>我可想见我这个交换数据将会被广泛使用，而且写成&amp;lt;T&amp;gt;型，
我虽然不知道如何申请专利，则这个专利也属于国家的，国家可以维护这个专利。 
void 算交换(int&amp;amp; a, int&amp;amp; b)
{
	int ab = a - b;
	a -= ab; b += ab;
	//cout &amp;lt;&amp;lt; ab &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; a &amp;lt;&amp;lt; ends &amp;lt;&amp;lt; b;
}
 
 
 
	int a = INT_MAX, b = INT_MIN;
	cout &amp;lt;&amp;lt; a &amp;lt;&amp;lt; ends ...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2022-01-30 16:18:10 +0800</pubDate>
    </item>
    <item>
      <title>接近平均分配箱子</title>
      <link>https://blog.bccn.net/xianfajushi/67772</link>
      <description>void 平均分配箱子数量()
{//缘由https://bbs.bccn.net/redirect.php?tid=508218&amp;amp;goto=lastpost#lastpost
	int n = 0, a[100000]{}, x = 0, a1 = 0, a2 = 0;
	std::cin &amp;gt;&amp;gt; n;
	while (x&amp;lt;n)std::cin &amp;gt;&amp;gt; a[x++]; std::sort(a, a + x);
	while (x--)	(a1&amp;lt;a2 ? a1 += a[x] : a2 += a[x]);
	std::cout &amp;lt;...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2022-01-24 08:34:42 +0800</pubDate>
    </item>
    <item>
      <title>返回日期后一天的日期</title>
      <link>https://blog.bccn.net/xianfajushi/67768</link>
      <description>void 返回日期后一天的日期()
{//缘由https://bbs.bccn.net/thread-507955-1-1.html
	int 年 = 0, 月 = 0, 天 = 0, 日 = 0;
	scanf_s("%d%d%d", &amp;amp;年, &amp;amp;月, &amp;amp;日);
	if (月 == 2){ if ((!(年 % 4) &amp;amp;&amp;amp; 年 % 100) || !(年 % 400)) 天 = 29; else 天 = 28; }
	else if ((月 &amp;lt;= 7 &amp;amp;&amp;amp; 月 % 2) || (月 &amp;gt; 7 &amp;amp;&amp;amp;...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2022-01-12 15:15:34 +0800</pubDate>
    </item>
    <item>
      <title>VSC++=》 字符串的删除与排序-将新的字符串按照字典逆序排序后输出()</title>
      <link>https://blog.bccn.net/xianfajushi/67094</link>
      <description>
	好吧，最少为了有人想学我，那我就发博文，让想学的人参考，或可学点。不知道如何带人，那就从这样开始吧。&amp;nbsp;

void 字符串的删除与排序()
{//缘由https://bbs.bccn.net/viewthread.php?tid=501236&amp;amp;pid=2727408&amp;amp;page=1#pid2727408
	cin &amp;gt;&amp;gt; noskipws; char a, b; cin &amp;gt;&amp;gt; b; string aa = ""; 
	while (cin &amp;gt;&amp;gt; a)if (a == '@')break; else if (a !=...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2020-04-28 08:59:16 +0800</pubDate>
    </item>
    <item>
      <title>VSC++=》 拆解整数对号入座重组</title>
      <link>https://blog.bccn.net/xianfajushi/67073</link>
      <description>void 拆解整数对号入座重组(int&amp;amp; 数, bool 选 = true)
{
&amp;nbsp;int 对号[10]{}, j = 选 ? 9 : 0, 反 = 0, 基 = 1;
&amp;nbsp;while (数)++对号[数 % 10], 数 /= 10;
&amp;nbsp;if (选)while (j &amp;gt;= 0)if (对号[j])数 *= 10, 数 += j, (反 ? 基 *= 10 : 0), 反 += 基 * j, --对号[j]; else --j;
&amp;nbsp;else while (j &amp;lt; 10)if (对号[j])数 *= 10, 数 += j,...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2020-04-08 19:48:26 +0800</pubDate>
    </item>
    <item>
      <title>VSC++=》 可控范围最大矩形</title>
      <link>https://blog.bccn.net/xianfajushi/67032</link>
      <description>
	欢迎指正，多谢关注。看到用全中文编写即表示很认真。


	


	


	


	


	数据1-10，10-1.


	


	已无瑕疵。
</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2020-03-20 22:08:14 +0800</pubDate>
    </item>
    <item>
      <title>VSC++： 升降分段 </title>
      <link>https://blog.bccn.net/xianfajushi/67017</link>
      <description>
	有心栽花花也开,无心插柳柳成荫,这个可用于分治排序,速度一定会提高.

void 升降分段(int* sz, int l)
{//缘由https://bbs.bccn.net/viewthread.php?tid=499776&amp;amp;pid=2721823&amp;amp;page=1#pid2721823
	int j = 1, z = 0; bool k = sz[0] &amp;gt;= sz[1], k1 = true;
	while (++j &amp;lt; l)
	{
		k1 = sz[j] &amp;gt;= sz[j + 1];
		if ((!k &amp;amp;&amp;amp; !k...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2020-03-16 11:00:35 +0800</pubDate>
    </item>
    <item>
      <title>VSC++=》 数的n次方</title>
      <link>https://blog.bccn.net/xianfajushi/67015</link>
      <description>
	缘由https://bbs.bccn.net/redirect.php?tid=499753&amp;amp;goto=lastpost#lastpost


	

void 数的n次方(int a, int aa)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int aaa = a, c = aa;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while (--c)aaa *= a;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf("%2d 的 %2d 次方 %2d\n", a, aa, aaa);
}
...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2020-03-14 19:44:48 +0800</pubDate>
    </item>
    <item>
      <title>VSC++=》 复制指定位置字符串 "</title>
      <link>https://blog.bccn.net/xianfajushi/67014</link>
      <description>
	


	

void 复制指定位置字符串(string a = "https://bbs.bccn.net/viewthread.php?tid=499735&amp;amp;extra=&amp;amp;page=1", int n = 47)
{
	string aa = ""; cout &amp;lt;&amp;lt; a &amp;lt;&amp;lt; ends &amp;lt;&amp;lt; n &amp;lt;&amp;lt; endl;
	if (n &amp;amp;&amp;amp; n % strlen(a.data()))cout &amp;lt;&amp;lt; (aa = a.substr(n - 1)) &amp;lt;&amp;lt; ends &amp;lt;&amp;...</description>
      <category>默认分类</category>
      <author>xianfajushi</author>
      <pubDate>2020-03-13 20:00:53 +0800</pubDate>
    </item>
  </channel>
</rss>
