登录
首页 » c++ » 约瑟夫问题

约瑟夫问题

于 2022-02-25 发布 文件大小:408.72 kB
0 63
下载积分: 2 下载次数: 1

代码说明:

大一数据结构第一次上机实验,上学期自学过一学期的C语言,从来没接触过c++。这学期开学数据结构课是c++描述的,完全不会,自己看了一小部分c++的书,老师用三节半课随便讲了讲c++,还是用英语,根本听不懂。自己瞎做的约瑟夫问题,可以运行,没有bug。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 001
    基于51单片机的出租车计价器系统设计,包含protues仿真电路和程序(Taximeter system design based on MCU 51 taxi, including Protues simulation circuit and program)
    2013-08-24 13:06:03下载
    积分:1
  • MMS
    实现完整的彩信发送具体功能要下载了自己研究-MMS
    2022-03-25 10:12:31下载
    积分:1
  • c5
    Function: // riffle Description: // 洗牌,然后随机的得到9张牌,要求九张牌不能有重复. Calls: // Called By: // main() Table Accessed: //被修改的表(此项仅对于牵扯到数据库操作的程序) Table Updated: // 被修改的表(此项仅对于牵扯到数据库操作的程序) Input: //Card card[] 牌结构, int size 结构数组的大小 Output: //(Function:// riffle Description:// shuffle, and then randomly get nine cards, requiring nine cards can not be duplicated. Calls:// Called By:// main () Table Accessed:// modified table ( This only involves the operation of the database for the program) Table Updated:// modified table (this only involves the operation of the database for the program) Input:// Card card [] licensing structure, int size structure of the array size Output ://)
    2013-07-23 06:35:33下载
    积分:1
  • des
    C#实现DES和3DES算法的CBC和ECB函数(C# DES and 3DES CBC algorithm and ECB function)
    2015-05-17 21:27:19下载
    积分: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
  • zlib压缩
    zlib压缩 c++类 实现c++string 或字符串的压缩,、make时需要libz 的库
    2022-02-14 09:40:41下载
    积分:1
  • UDP
    基于UDP的串口通信,与TCP不同的是UDP利用的是广播技术,和服务端并没有建立可靠的连接(jiyuudpdechuankoutongxin)
    2009-07-08 13:04:26下载
    积分:1
  • 脉搏心率测试(含心电图)
    STM32实现心率传感器采集数据,触摸屏呈现图像和数据(STM32 realizes the heart rate sensor to collect data, the touch-screen presents the image and the data.)
    2018-05-09 09:34:54下载
    积分:1
  • vc++filterslab
    vc++下各种数字滤波器的实验程序,包括带通,带阻,低通,高通。(vc++ a variety of digital filters under the experimental procedures, including band-pass, band stop, low-pass, high pass.)
    2008-04-07 13:54:05下载
    积分:1
  • 螺丝螺帽配对问题
    100个螺丝螺帽的陪对问题。 假设有N个螺丝和N个螺丝帽混在一堆,需要将它们快速配对。一个螺丝只会匹配一个螺丝帽,一个螺丝帽也只会匹配一个螺丝。可以试着把一个螺丝和一个螺丝帽拧在一起,看看哪一个大了,但不能直接比较两个螺丝或者螺丝帽的大小。
    2022-08-10 03:16:14下载
    积分:1
  • 696518资源总数
  • 105570会员总数
  • 13今日下载