登录
首页 » C# » 猜随机数游戏源码(入门级)

猜随机数游戏源码(入门级)

于 2020-03-03 发布
0 64
下载积分: 1 下载次数: 0

代码说明:

猜随机数游戏源码(入门级)

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

发表评论

0 个回复

  • c++的大整数运算(支持二进制以及十进制的加、减、乘、除)
    【基本要求】 1.       要求采用链表来实现大整数的存储和运算,不允许使用标准模板类的链表类(list)和函数。同时要求可以从键盘输入大整数,也可以文件输入大整数,大整数可以输出至显示器,也可以输出至文件。大整数的存储、运算和显示,可以同时支持二进制和十进制,但至少要支持十进制。大整数输出显示时,必须能清楚地表达出整数的位数。测试时,各种情况都需要测试,并附上测试截图;要求测试例子要比较详尽,各种极限情况也要考虑到,测试的输出信息要详细易懂,表明各个功能的执行正确; 2.       要求大整数的长度可以不受限制,即大整数的十进制位数不受限制,可以为十几位的整数,也可以为500多位的整数,甚至更长;大整数的运算和显示时,只需要考虑正的大整数。如果可能的话,请以秒为单位显示每次大整数运算的时间; 3.       要求采用类的设计思路,不允许出现类以外的函数定义,但允许友元函数。主函数中只能出现类的成员函数的调用,不允许出现对其它函数的调用。 4.       要求采用多文件方式:.h文件存储类的声明,.cpp文件存储类的实现,主函数main存储在另外一个单独的cpp文件中。如果采用类模板,则类的声明和实现都放在.h文件中。 5.       不强制要求采用类模板,也不要求采用可视化窗口;要求源程序中有相应注释; 6.       要求采用Visual C 6.0及以上版本进行调试; 二、设计思路: 主要采用小学生竖式的思路。 加法:从最小的位开始逐位相加,十进制逢十进一(二进制,逢二进一) 减法:从最小位开始,逐位相减,位数不够则从高位退位,低位加十(二进制则加二) 乘法:和竖式乘法的原理相同,建立在加法的基础上,逐位相乘,再按位相加 除法:除法是建立在减法的基础上,但逐个相减的效率太低,先把除数乘以两数的位数之差的10的乘方倍。被除数能够减去除数的个数,即为商,剩下的即为余数,再把余数当做被除数,除数不变,如此循环,把每个循环的得到的商乘以除数扩大的倍数,相加。直到所得的余数小于除数结束运算。 乘方:建立在乘法的基础上,执行指数-1次底数的乘法,每次执行完都指数减一。最后累乘的结果即为最后的结果 三、设计结构: 主要包括两个类,一个list类,一个calculate类。 List类中包括所有的单独对一条链表的操作,如创立链表,输出,添加节点,删除节点,以及对链表数值的操作。 Calculate类中包括所有的涉及两条链表的操作,如两条链表大小的比较,大整数的加减乘除和乘方操作,以及运算结果的输出。 详细操作与分析见源代码的注释
    2019-12-15下载
    积分:1
  • 像QQ窗体一样,将窗体移动到顶端时自动隐藏、自动显示
    类似qq 一样 浮动和隐藏窗体
    2013-01-07下载
    积分:1
  • Modbus连接上位机,接收数据
    连接上位机,接受数据
    2020-11-28下载
    积分:1
  • .NET Reflector 5.0 使用例子(反编译软件)
    .NET Reflector 5.0 Release Notes 28 December 2006 Reflector is a class browser for .NET components. It allows browsing and searching the meta data, IL instructions, resources and XML documentation stored in a .NET assembly. Reflector was first released in October 2000 running on .NET Framework 1.0 Beta. LINQ and .NET Framework 3.5: Reflector supports query expressions and other concepts introduced in C# 3.5. To enable this feature select ".NET 3.5" under View, Options, Disassembler, Optimization. .NET Framework compatibility: Reflector runs on all versions of the .NET Framework using its own assembly loading infrastructure which does not rely on the Reflection API. For example, Reflector can load .NET Framework 2.0 assemblies without having the .NET Framework 2.0 installed. Assembly Lists: When launched for the first time, Reflector allows you to choose a default set of assemblies. The list of assemblies is then stored in the Reflector.cfg file and will be loaded next time you open the program. Reflector allows creating multiple assembly lists and switching between the lists using the File, Open List dialog. To choose a different set of default assemblies for the current assembly list you should remove all assemblies from the list (DEL) and invoke the Refresh command (F5). Assembly Cache: When resolving an assembly reference, Reflector will first search the local path next to the assembly holding the reference and then falls back to the cache directories defined in the Reflector.cfg file. Reflector does not search the Global Assembly Cache (GAC) unless you add "%SystemRoot%Assembly" to the cache directories list. Assembly Versioning: By default, assembly version numbers are ignored when resolving type and member references. You can enable side-by-side versioning in the options dialog but it is suggested to avoid this if possible. Add-Ins: Information about the Reflector add-in model can be found here. The most recent version of .NET Reflector is available here. Disclaimer: This software is provided "AS IS" with no warranties of any kind. The entire risk arising out of the use or performance of the software is with you.
    2015-06-15下载
    积分:1
  • 抓取价格,EXcel导入导出
    抓取指定面上的价格并导入到Excel表中
    2013-11-30下载
    积分:1
  • winform中使用 Jquery 读取网页内容 源码下载,(思路可借鉴)
    winform中使用 Jquery 读取网页内容 源码下载,(思路可借鉴)
    2014-06-07下载
    积分:1
  • C面试题.doc(近百道题)
    C语言面试题目录C语言面试题.......................................................................................................................................1第一部分:基本概念及其它问答.........................................................................................................2第二部分:程序代码评价或者找错.....................................................................................................4第三部分:编程题.................................................................................................................................24第四部分:附加部分.............................................................................................................................27
    2020-06-24下载
    积分:1
  • C# WinFrom无失真缩小图片
    C# WinFrom无失真缩小图片
    2015-01-08下载
    积分:1
  • 制作web界面并部署到docker上(asp.net core)
    【实例简介】将asp.net core 项目部署到docker中
    2021-06-15 00:31:13下载
    积分:1
  • <赞>C# 超市管理系统源码
    功能齐全的超市管理系统,专门美化过UI 请先附加数据库,否则无法进入系统(默认拥有最高权限账户为经理,密码为admin  压缩包内有使用说明!
    2018-06-10下载
    积分:1
  • 696524资源总数
  • 103957会员总数
  • 51今日下载