-
c
说明: 约瑟夫问题的实现:设有n个人围坐在圆桌周围,现从某个位置m(1≤m≤n)上的人开始报数,报数到k的人就站出来。下一个人,即原来的第k+1个位置上的人,又从1开始报数,再报数到k的人站出来。依此重复下去,直到全部的人都站出来为止。试设计一个程序求出出列序列。(Joseph realized the problem: There are n people sitting around the round table, is from a position of m (1 ≤ m ≤ n) reported on the number of people began to be reported to the k number of people to come forward. The next person, that is, the original positions on the first k+1 people, and from the number reported at 1, then the number reported to the k to stand up. So repeat this until all the others can stand up. Try to design a program derived from the column sequence.)
- 2011-03-23 15:36:50下载
- 积分:1
-
基于TCP的Socket编程
基于TCP的socket编程源码,能够实现客户端服务器之间通信,基于VC.0的MFC类库的编程,图形化界面
- 2023-08-31 13:00:03下载
- 积分:1
-
IPLib2.0
一套基于VC++的遥感影象处理系统,可以实现空间域,频率域以及光谱的处理(yi tao ji yu VC++ de yaohan yingxiang chuli xitong)
- 2021-01-05 09:48:54下载
- 积分:1
-
用模糊控制算法调节PID控制器
通常的PID算法都是手动调节设置参数,经过模糊控制设计的PID可以根据不同的情况,自动调节PID参数
- 2022-02-02 04:56:31下载
- 积分:1
-
用C#实现的读写串口
用C#实现的读写串口-C# literacy Serial
- 2022-10-22 22:25:03下载
- 积分:1
-
pic-c
说明: 详细介绍了MICROCHIP公司推出的16位的,具有哈佛结构的,更大存储空间的,存储器分段管理的PIC18系列单片机的C语言编程指南(details of the company's going before 16, with Harvard architecture, greater storage space, memory management section of PIC18 MCU Series C Programming Language Guide)
- 2005-10-15 09:44:29下载
- 积分:1
-
Cpp ACM ICPC 6152 解决方案
ACM PC 6152问题的解决方案:
- 2023-04-24 20:45:03下载
- 积分:1
-
MC9S12XS128 485发送
MC9S12XS128的485发送程序 只有发送 对于这款单片机的资料很少 大家珍惜
- 2022-08-03 07:31:08下载
- 积分:1
-
PIC CCP例
#include
#define uchar unsigned char
#define uint unsigned int
__CONFIG(0x3B31);
uint CCPDE;
const uchar table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
void delay(uint x)
{
uint j,i;
for(i=x;i>0;i--)
for(j=110;j>0;j--);
}
uchar temp;
void init();
void display();
void xianshi(uchar num1,uchar num2,uchar num3,uchar num4);
void main()
{
uchar a1=0,a2=0,a3=0,a4=0;
init();
while(1)
{
a1=CCPDE/1000;
a2=CCPDE%1000/100;
a3=CCPDE%100/10;
a4=CCPDE%10;
xianshi(a4,a3,a2,a1);
}
}
void init()
{
TRISB=0X00;
PORTB=0x06;
TRISC=0x0f;
CCP1IE=1;
T1CON=0X01;
CCP
- 2022-12-15 00:15:03下载
- 积分:1
-
vrp-jieyuelichengsuanfa
数模vrp问题---节约里程算法C++代码 (vrp saving mileage algorithm C++ code。)
- 2013-08-18 11:16:42下载
- 积分:1