代码搜索:fraction

找到约 2,056 项符合「fraction」的源代码

代码结果 2,056
www.eeworm.com/read/278287/10551551

as fraction.as

//Class:Fraction Author:Swfdong Date:2007-7-1 package { import AdvancedMath; public class Fraction { private var FRACTION_NUMERATOR:Number; private var FRACTION_DENOMINATOR:Number; function
www.eeworm.com/read/278287/10551561

as ._fraction.as

www.eeworm.com/read/357852/10200211

cpp fraction.cpp

#include "fraction.h" #include void Fraction::set(int nn, int nd) { m_Numerator = nn; m_Denominator = nd; } double Fraction::toDouble() const { return 1.0 * m_Numerator / m_Den
www.eeworm.com/read/357852/10200213

h fraction.h

#ifndef _FRACTION_H_ #define _FRACTION_H_ #include using namespace std; class Fraction { public: void set(int numerator, int denominator); double toDouble() const; string toS
www.eeworm.com/read/357852/10200217

cpp fraction.cpp

#include "fraction.h" #include /* static member definitions */ int Fraction::assigns = 0; int Fraction::copies = 0; int Fraction::ctors = 0; Fraction Fraction::multiply(Fraction f2) {
www.eeworm.com/read/357852/10200218

h fraction.h

#ifndef FRACTION_H #define FRACTION_H //start class Fraction { public: Fraction(int n, int d) : m_Numer(n), m_Denom(d) { ++ctors; } Fraction(const Fraction& other) : m_Nume
www.eeworm.com/read/357852/10200341

cpp fraction.cpp

class Fraction { public: Fraction(int n, int d = 1) /* default argument */ : m_Numerator(n), m_Denominator(d) {} private: int m_Numerator, m_Denominator; }; int main() { int i;
www.eeworm.com/read/278099/10569662

c fraction.c

/* +++Date last modified: 05-Jul-1997 */ /* ** FRACTION.C - Compute continued fraction series ** ** cfrac() donated to the public domain by the author, Thad Smith ** original Fraction.C, pub
www.eeworm.com/read/159920/10588680

c fraction.c

/* ** FRACTION.C - Convert a floating point value to an integer ratio ** ** public domain by Bob Stout */ #include #include #include unsigned char n, d;
www.eeworm.com/read/159696/10621912

cpp fraction.cpp

#include #include using namespace std; void fmzero() { cerr