文件名称:hexmine
介绍说明--下载内容来自于网络,使用问题请自行百度
自己用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 取负 取负运算就是取一个浮点数的负数。-prepare themselves with a small C games, DOS interface, oh run. Float Float basic operations of the basic operations are four major operations, symbols, sizes, and float-watchman's rattle so. The first document contains "fn.hpp" # include "fn.hpp" float float basic operations of the basic operations are, plus or minus, riding, except from negative, in absolute terms, a comparison of the same. The arithmetic, plus or minus, multiplication and four Operational very similar, two parameters are needed, of course, is the result of the float. Example : / / arithmetic btil : : fn : : pluslt; F1, f2gt; : : Value / / f1 f2 results btil : : fn : : minuslt; F1, f2gt; : : Value / / f1 - f2 btil the results : : fn : : multiplieslt; f1, f2gt; : : value / / f1 - f2 results btil :
(系统自动生成,下载前可以参看下载内容)
下载文件列表
hexmine/honey1_3.dev
hexmine/honey1_3.exe
hexmine/honey1_3.ico
hexmine/honey1_3.layout
hexmine/honey1_3.zip
hexmine/honey1_3_private.h
hexmine/honey1_3_private.rc
hexmine/honey1_3_private.res
hexmine/HoneyHole.h
hexmine/main.cpp
hexmine/main.o
hexmine/main.obj
hexmine/main.tds
hexmine/Makefile.win
hexmine/screen.h
hexmine/SixMine.bpr
hexmine/SixMine.cpp
hexmine/SixMine.obj
hexmine/SixMine.res
hexmine/SixMine.~bpr
hexmine/SixMine.~cpp
hexmine/TSixMine.cpp
hexmine/TSixMine.~cpp
hexmine/TSixMinePlayer.cpp
hexmine/Unit1.cpp
hexmine/Unit1.ddp
hexmine/Unit1.dfm
hexmine/Unit1.h
hexmine/Unit1.obj
hexmine/Unit1.~cpp
hexmine/Unit1.~ddp
hexmine/Unit1.~dfm
hexmine/Unit1.~h
hexmine/Unit2.cpp
hexmine/Unit2.ddp
hexmine/Unit2.dfm
hexmine/Unit2.h
hexmine/Unit2.obj
hexmine/Unit2.~cpp
hexmine/Unit2.~ddp
hexmine/Unit2.~dfm
hexmine/Unit2.~h
hexmine
www.dssz.com.txt
hexmine/honey1_3.exe
hexmine/honey1_3.ico
hexmine/honey1_3.layout
hexmine/honey1_3.zip
hexmine/honey1_3_private.h
hexmine/honey1_3_private.rc
hexmine/honey1_3_private.res
hexmine/HoneyHole.h
hexmine/main.cpp
hexmine/main.o
hexmine/main.obj
hexmine/main.tds
hexmine/Makefile.win
hexmine/screen.h
hexmine/SixMine.bpr
hexmine/SixMine.cpp
hexmine/SixMine.obj
hexmine/SixMine.res
hexmine/SixMine.~bpr
hexmine/SixMine.~cpp
hexmine/TSixMine.cpp
hexmine/TSixMine.~cpp
hexmine/TSixMinePlayer.cpp
hexmine/Unit1.cpp
hexmine/Unit1.ddp
hexmine/Unit1.dfm
hexmine/Unit1.h
hexmine/Unit1.obj
hexmine/Unit1.~cpp
hexmine/Unit1.~ddp
hexmine/Unit1.~dfm
hexmine/Unit1.~h
hexmine/Unit2.cpp
hexmine/Unit2.ddp
hexmine/Unit2.dfm
hexmine/Unit2.h
hexmine/Unit2.obj
hexmine/Unit2.~cpp
hexmine/Unit2.~ddp
hexmine/Unit2.~dfm
hexmine/Unit2.~h
hexmine
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.