::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 211
下载积分: 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 个回复

  • 电脑常用知识,dos下的一些应用
    电脑常用知识,dos下的一些应用-Commonly used computer knowledge, dos applications under
    2022-02-11 22:36:24下载
    积分:1
  • 计算器应用程序
    应用背景一个计算器应用程序。可以计算加减乘除,具有简单的界面,帮助初学C++的同学熟练掌握Visual C++ MFC的框架构建等。关键技术Visual C++ MFC的框架构建,对话框的创建与设计,文本框获取输入信息,常用控件的操作,添加变量,编写函数等。
    2022-03-31 18:14:55下载
    积分:1
  • 聊天室DLL 聊天室D
    聊天室DLL 聊天室D-DLL chat rooms chat rooms D
    2022-07-23 19:13:09下载
    积分:1
  • 这个例子中,控件随窗口大小一起变
    这个例子中,控件随窗口大小一起变-this case, control together with the window size change
    2022-07-13 05:48:52下载
    积分:1
  • Internet five times anniversary celebrations, as low as 6.2% Shopxp Mall Shoppin...
    时代互联5周年庆典,低至6.2折 Shopxp 商城购物系统 北京联通 上海电信 辽宁联通 江苏电信 河南网通 北方电信 a站长强烈推荐使用迅雷5高速下载! a全球最大的驱动下载基地! a强烈推荐使用IS下载 a域名45元,虚机100M 50元,诚征代理 注意:推荐使用网际快车或迅雷飞速下载!若不能下载,请报告错误,谢谢!下载解压缩软件: WinRAR 韩国服务器出租 软件简介: 主要功能: 1、各栏目自由添加,排序 2、文章在线添加、编辑、删除。 3、网站相关信息后台动态配置 4、自由添加友情链接 5、添加广告,支持HTML编码 6、支持UBB 7、软件下载 -Internet five times anniversary celebrations, as low as 6.2% Shopxp Mall Shopping System Beijing Unicom Shanghai Telecom Unicom Liaoning, Henan, Jiangsu Telecom Netcom head of a Northern Telecom strongly recommend the use of high-speed downloads Thunderbolt 5! A driver of the world"s largest base for download! A strongly recommend the use of IS Download a domain name 45 yuan, virtual machine 100M 50 yuan, The issue of attention : recommended deletion or Thunderbolt rapid download! if it can not be downloaded, please report errors, thank you! extract the downloaded software : WinRAR Korea server software rental briefing : main function
    2022-03-30 19:11:23下载
    积分:1
  • Map coloring problem, using lingo9.0 program
    地图着色问题,用lingo9.0程序实现-Map coloring problem, using lingo9.0 program
    2022-03-19 07:00:27下载
    积分:1
  • GPS原始数据分割的小工具,直接解压执行就能用
    GPS原始数据分割的小工具,直接解压执行就能用-GPS raw data segmentation of small tools, the implementation will be able to directly extract used
    2022-04-23 16:03:24下载
    积分:1
  • verilog 实现的jtag ip模块 包括了测试程序
    verilog 实现的jtag ip模块 包括了测试程序-Verilog achieve the JTAG ip modules including test procedures
    2022-11-13 13:50:03下载
    积分:1
  • 3D益智游戏摇方块vb源代码,详细信息请下载后自己观看,
    3D益智游戏摇方块vb源代码,详细信息请下载后自己观看,-3D puzzle game rolling box vb source code
    2023-07-29 08:15:04下载
    积分:1
  • a small J2ME games, a child playing jigsaw puzzles, things done, but not past En...
    一个j2me的小游戏,儿时玩的拼图板,东西做出来了,但却完不过去,咳,年纪大了,呵呵.-a small J2ME games, a child playing jigsaw puzzles, things done, but not past End, cough, age, huh.
    2022-07-07 14:19:17下载
    积分:1
  • 696516资源总数
  • 106405会员总数
  • 10今日下载