虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

Two-input

  • 浮点数基本运算 浮点数的基本运算主要有四则运算、符号处理、大小比较

    浮点数基本运算 浮点数的基本运算主要有四则运算、符号处理、大小比较,以及浮点数分柝等。 包含头文件 "fn.hpp" #include "fn.hpp" 浮点数基本运算 浮点数的基本运算中有加、减、乘、除、取负、绝对值、相等比较等。 加减乘除 加、减、乘、除四个运算极为相似,都是需要两个参数,结果当然也是浮点数了。 例子: // 加 减 乘 除 btil::fn::plus<f1, f2>::value // f1+f2 的结果 btil::fn::minus<f1, f2>::value // f1-f2 的结果 btil::fn::multiplies<f1, f2>::value // f1*f2 的结果 btil::fn::divides<f1, f2>::value // f1/f2 的结果 plus<f1, f2>::value::f_val // f1+f2 的结果的值 struct one { static const double f_val = 1.0 } // 两个浮点数 struct two { static const double f_val = 2.0 } minus<two, plus<divides<one, two>::value, one>::value >::value::f_val == 0.5 取负 取负运算就是取一个浮点数的负数。

    标签: 浮点数 运算 四则运算 比较

    上传时间: 2014-12-06

    上传用户:exxxds

  • 自己用C编写的小游戏

    自己用C编写的小游戏,DOS界面哦,可以运行。 浮点数基本运算 浮点数的基本运算主要有四则运算、符号处理、大小比较,以及浮点数分柝等。 包含头文件 "fn.hpp" #include "fn.hpp" 浮点数基本运算 浮点数的基本运算中有加、减、乘、除、取负、绝对值、相等比较等。 加减乘除 加、减、乘、除四个运算极为相似,都是需要两个参数,结果当然也是浮点数了。 例子: // 加 减 乘 除 btil::fn::plus<f1, f2>::value // f1+f2 的结果 btil::fn::minus<f1, f2>::value // f1-f2 的结果 btil::fn::multiplies<f1, f2>::value // f1*f2 的结果 btil::fn::divides<f1, f2>::value // f1/f2 的结果 plus<f1, f2>::value::f_val // f1+f2 的结果的值 struct one { static const double f_val = 1.0 } // 两个浮点数 struct two { static const double f_val = 2.0 } minus<two, plus<divides<one, two>::value, one>::value >::value::f_val == 0.5 取负 取负运算就是取一个浮点数的负数。

    标签: 编写 小游戏

    上传时间: 2014-12-06

    上传用户:jichenxi0730

  • Locally weighted polynomial regression LWPR is a popular instance based al gorithm for learning c

    Locally weighted polynomial regression LWPR is a popular instance based al gorithm for learning continuous non linear mappings For more than two or three in puts and for more than a few thousand dat apoints the computational expense of pre dictions is daunting We discuss drawbacks with previous approaches to dealing with this problem

    标签: polynomial regression weighted instance

    上传时间: 2013-11-28

    上传用户:sunjet

  • 一个完整的2D滚屏游戏示例

    一个完整的2D滚屏游戏示例,编译后可以运行玩耍。使用DIRECT DRAW,DIRECT INPUT,DIRECT SOUND;游戏逻辑完整,有记分系统,供喜欢游戏编程的初学者参考切磋。

    标签:

    上传时间: 2013-12-23

    上传用户:王庆才

  • http://www.edacn.net/cgi-bin/forums.cgi?forum=7&topic=9127下,则R3~R0的输出信号中会有一个为1,但我们还是是无法确定哪一个键被按下,必須要

    http://www.edacn.net/cgi-bin/forums.cgi?forum=7&topic=9127下,则R3~R0的输出信号中会有一个为1,但我们还是是无法确定哪一个键被按下,必須要从R3 ~R0 的输出信号与C3~C0的扫描信号共同決定那个按键被按下. 编写VHDL的构思: 外部接口包括: a. INPUT脚 : CLK , R3~R0. b. OUTPUT脚 : C3~C0 , DATA3~DATA0(辨别出的按键值).

    标签: cgi-bin forums edacn forum

    上传时间: 2015-04-09

    上传用户:zm7516678

  • One of the most important issues affecting the implementation of microcontroller software deals wi

    One of the most important issues affecting the implementation of microcontroller software deals with the data-decision algorithm. Data-decision refers to decoding the DIO-pin from the CC400/CC900. Two main principles exist for decoding Manchester-coded data: Data decision based on timing the period between transitions, and data decision based on oversampling.

    标签: microcontroller implementation important affecting

    上传时间: 2013-12-18

    上传用户:671145514

  • 随机性发生器、冒泡分类和混洗一组12张牌的演示程序。 Demonstrates the use of a randomizer, bubble-sort and an array to "shuff

    随机性发生器、冒泡分类和混洗一组12张牌的演示程序。 Demonstrates the use of a randomizer, bubble-sort and an array to "shuffle" a deck of 12 cards. I put it here for those of you who are trying to figure out how to shuffle with a randomizer without having the same card appear two-or-more times.

    标签: Demonstrates bubble-sort randomizer array

    上传时间: 2014-01-16

    上传用户:zhanditian

  • Tic Tac Toe程序。可以供一到两个玩家使用。程序中使用了visual basic 计时器

    Tic Tac Toe程序。可以供一到两个玩家使用。程序中使用了visual basic 计时器,所以每一个步骤都有时间限制。此外,计算机可是一个有简单智能的对手,他不但不会随便出手,反而还要竭力赢了你才罢休。 Tic Tac Toe program. One or two players. It uses the visual basic timer, so each move has time limit. Simple artificial intelligence: computer does not play randomly, but "tries" to win and stop you from winning.

    标签: visual basic Tic Tac

    上传时间: 2015-04-11

    上传用户:sxdtlqqjl

  • CC386 is a general-purpose 32-bit C compiler. It is not an optimizing compiler but given that the co

    CC386 is a general-purpose 32-bit C compiler. It is not an optimizing compiler but given that the code generation is fairly good. There are two versions one is for MSDOS/DPMI and one is for Win32. The Win32 version has a full-blown IDE capable of editing, building, and debugging windows programs included with it. However at this time debugging support for MSDOS is rudimentary at best and there is no IDE for DOS. the newest version, support windows.

    标签: compiler general-purpose optimizing given

    上传时间: 2015-04-12

    上传用户:gtzj

  • 无线仿真Matlab代码

    无线仿真Matlab代码,Matlab scripts to generate input trace files. Changed in January 2005

    标签: Matlab 无线 仿真 代码

    上传时间: 2015-04-13

    上传用户:wkchong