码迷,mamicode.com
首页 >  
搜索关键字:fraction to recurrin    ( 280个结果
c/c++:四则运算题目生成器3
题目要求: 1.学生写的程序必须能判定用户的输入答案是否正确 2.程序必须能处理四种运算的混合算式 3.要求两人合作分析,单独编程,单独撰写博客 团队成员:杜文星,张邵佳(http://www.cnblogs.com/me-tts/) 我的代码: head.h fraction.cpp stack.
分类:编程语言   时间:2016-03-19 11:11:56    阅读次数:272
四则运算基本功能完成
一、基本功能的实现 在项目目录下新建txt文件,输入若干四则运算式,每个算式以“=”结束。 运行结果:   输入的答案可以是整数、分数。输入没有化简的分数算作正确。程序给出的正确答案是化简后的分数。   二、较第一版程序的改动 增加了两个类:Scanner类,用于处理算式;fraction类,表示分
分类:其他好文   时间:2016-03-15 00:25:04    阅读次数:321
objective-c第七章课后练习3
题:Fraction类对负分数适用吗?例如:1/4-1/2 能否显示成-1/4? 1 //--------类定义实现参考上篇随笔,此处需更改print方法和main主方法部分---------- 2 - (void) print: (BOOL) yesOrNo//打印 3 { 4 if (yesOr
分类:其他好文   时间:2016-03-08 16:09:30    阅读次数:127
分数相加的例题
方法为:a/b+c/d=( (a*d)+(b*c) )/(b*d) (1).h文件#import <Foundation/Foundation.h> @interface Fraction : NSObject //fraction分数 @property int numerator,denomin
分类:其他好文   时间:2016-03-05 20:16:58    阅读次数:194
分数化小数
Fractions to Decimals Write a program that will accept a fraction of the form N/D, where N is the numerator and D is the denominator and print the dec
分类:其他好文   时间:2016-03-03 17:43:40    阅读次数:316
Android中自定义属性的格式详解
自定义属性格式一共有十种; 1. reference:参考某一资源ID。 2. color:颜色值。 3. boolean:布尔值。 4. dimension:尺寸值。 5. float:浮点值。 6. integer:整型值。 7. string:字符串。 8. fraction:百分数。 9.
分类:移动开发   时间:2016-02-19 14:09:51    阅读次数:209
Fraction to Recurring Decimal
? package cn.edu.xidian.sselab.hashtable;import java.util.HashMap;import java.util.Map;/** * * @author zhiyong wang * title: Fraction to Recurring Dec
分类:其他好文   时间:2016-01-30 22:13:23    阅读次数:201
多态性
main.m// Fraction分数// Complex复数#import#import"Fraction.h"#import"Complex.h"intmain(intargc,constchar* argv[]) {@autoreleasepool{Fraction*f1 = [Fractio...
分类:其他好文   时间:2016-01-06 14:07:18    阅读次数:129
Second: 基本类型-数值型(int, float)
基本类型中数值类型有 int, float, Decimal, Fraction其中int 和 float 是比较常见的类型, 而Decimal 和 Fraction 不是那么常见, 所以暂时学习int 和 float.Division (/) always returns a floatTo do...
分类:其他好文   时间:2015-12-29 21:08:38    阅读次数:226
JAVA初学者(一)
2015-12-15 21:26:17刚学的java 做个总结:1.构造函数没有返回值。2.A对象调用Q的方法,Q方法里的变量就是A的变量Fraction add(Fraction f)在这个方法里体现的比较明显红色的fm就是调用者的fm这个构造函数里写this的原因就是与参数一个名字怕混淆当然了F...
分类:编程语言   时间:2015-12-15 22:49:11    阅读次数:272
280条   上一页 1 ... 16 17 18 19 20 ... 28 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!