::value//f1+f2的结果btil::fn::minus::value//f1-f2的结果btil::fn::multiplies::value//f1*f2的结果btil::fn::divides::value//f1/f2的结果plus::value::f_val//f1+f2的结果的值structone{staticconstdoublef_val=1.0}//两个浮点数structtwo{staticconstdoublef_val=2.0}minus::value,one>::value>::value::f_val==0.5取负取负运算就是取一个浮点数的负数。-preparethemselveswithasmallCgames,DOSinterface,ohrun.FloatFloatbasicoperationsofthebasicoperationsarefourmajoroperations,symbols,sizes,andfloat-watchman"srattleso.Thefirstdocumentcontains"fn.hpp"#include"fn.hpp"floatfloatbasicoperationsofthebasicoperationsare,p-IMDN开发者社群-imdn.cn"> ::value//f1+f2的结果btil::fn::minus::value//f1-f2的结果btil::fn::multiplies::value//f1*f2的结果btil::fn::divides::value//f1/f2的结果plus::value::f_val//f1+f2的结果的值structone{staticconstdoublef_val=1.0}//两个浮点数structtwo{staticconstdoublef_val=2.0}minus::value,one>::value>::value::f_val==0.5取负取负运算就是取一个浮点数的负数。-preparethemselveswithasmallCgames,DOSinterface,ohrun.FloatFloatbasicoperationsofthebasicoperationsarefourmajoroperations,symbols,sizes,andfloat-watchman"srattleso.Thefirstdocumentcontains"fn.hpp"#include"fn.hpp"floatfloatbasicoperationsofthebasicoperationsare,p - IMDN开发者社群-imdn.cn">
登录
首页 » 其他项目 » prepare themselves with a small C games, DOS interface, oh run. Float Float basi...

prepare themselves with a small C games, DOS interface, oh run. Float Float basi...

于 2022-03-22 发布 文件大小:266.95 kB
0 65
下载积分: 2 下载次数: 1

代码说明:

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

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

发表评论

0 个回复

  • 696532资源总数
  • 103574会员总数
  • 133今日下载