分数是两个整数的比,通常表示为 (或b/a)的形式,其中b称为分子,a称为分母,分母不能为0。分数在计算机中以整数或浮点数(有限小数)的形式表示,大多数情况下都是近似表示,具有较大的误差,例如 ,在计算机中用整数表示为0,用浮点数表示为0.333333。本实例就是要设计一个Fraction (分数) 类类型,该类型的对象可以像基本类型数据一样进行运算,结果仍为分数,运算包括四则运算,关系运算,及求一元一次分式方程的解,输入输出要求按分数方式进行。
上传时间: 2016-02-18
上传用户:zhoujunzhen
两种解决方案 Richard just finished building his new house. Now the only thing the house misses is a cute little wooden fence. He had no idea how to make a wooden fence, so he decided to order one. Somehow he got his hands on the ACME Fence Catalogue 2002, the ultimate resource on cute little wooden fences. After reading its preface he already knew, what makes a little wooden fence cute. A wooden fence consists of N wooden planks, placed vertically in a row next to each other. A fence looks cute if and only if the following conditions are met: ?The planks have different lengths, namely 1, 2, . . . , N plank length units. ?Each plank with two neighbors is either larger than each of its neighbors or smaller than each of them. (Note that this makes the top of the fence alternately rise and fall.)
标签: house the finished building
上传时间: 2014-01-26
上传用户:541657925
There are numerous MATLAB m-files included in this software package. Thus, the the authors have bundled all files and sample data in a *.zip file (KTHorb.zip). The Readme.txt file describes the directories created when the .zip file is unpacked. The file Matlab_implementation.doc (or Matlab_implementation.txt) describes some of the classes and methods included in the package for GPS satellite orbit interpolation.
标签: the numerous included software
上传时间: 2016-03-08
上传用户:qweqweqwe
【下载说明】这里提供的是《》一书的CHm格式电子书下载。【内容简介】Ruby has been readily adopted by programmers in Japan and has had much documentation written for it in Japanese. As programmers outside of Japan learn about the benefits of Ruby, there is a growing need for documentation in English. The first book I wrote for O Reilly, Ruby Pocket Reference, was in Japanese. Since then Ruby has changed significantly. To meet the needs of non-Japanese programmers, we translated, updated, and expanded Ruby Pocket Reference into Ruby in a Nutshell.
标签: programmers has adopted readily
上传时间: 2014-01-14
上传用户:kikye
DataDraw is an ultra-fast persistent database for high performance programs written in C. It s so fast that many programs keep all their data in a DataDraw database, even whi le being manipulated in inner loop s of compute intensive appl ications.
标签: C. performance ultra-fast persistent
上传时间: 2013-12-19
上传用户:xhz1993
Just what is a regular expression, anyway? Take the tutorial to get the long answer. The short answer is that a regular expression is a compact way of describing complex patterns in texts. You can use them to search for patterns and, once found, to modify the patterns in complex ways. You can also use them to launch programmatic actions that depend on patterns. A tongue-in-cheek comment by programmers is worth thinking about: "Sometimes you have a programming problem and it seems like the best solution is to use regular expressions now you have two problems." Regular expressions are amazingly powerful and deeply expressive. That is the very reason writing them is just as error-prone as writing any other complex programming code. It is always better to solve a genuinely simple problem in a simple way when you go beyond simple, think about regular expressions. Tutorial: Using regular expressions
标签: expression the tutorial regular
上传时间: 2013-12-19
上传用户:sardinescn
this a program to show your current credits for add or drop subjects. During university, students need to register what subjects they want to study in a semester. this program show and help to calculate the credits.
标签: university subjects students program
上传时间: 2016-03-31
上传用户:小眼睛LSL
模式识别学习综述.该论文的英文参考文献为303篇.很有可读价值.Abstract— Classical and recent results in statistical pattern recognition and learning theory are reviewed in a two-class pattern classification setting. This basic model best illustrates intuition and analysis techniques while still containing the essential features and serving as a prototype for many applications. Topics discussed include nearest neighbor, kernel, and histogram methods, Vapnik–Chervonenkis theory, and neural networks. The presentation and the large (thogh nonexhaustive) list of references is geared to provide a useful overview of this field for both specialists and nonspecialists.
标签: statistical Classical Abstract pattern
上传时间: 2013-11-25
上传用户:www240697738
Hibernate: A Developer s Notebook shows you how to use Hibernate to automate persistence: you write natural Java objects and some simple configuration files, and Hibernate automates all the interaction between your objects and the database. You don t even need to know the database is there, and you can change from one database to another simply by changing a few statements in a configuration file. If you ve needed to add a database backend to your application, don t put it off. It s much more fun than it used to be, and Hibernate: A Developer s Notebook shows you why.
标签: Hibernate persistence Developer you
上传时间: 2016-04-07
上传用户:123啊
In this demo, we show how to use Rao-Blackwellised particle filtering to exploit the conditional independence structure of a simple DBN. The derivation and details are presented in A Simple Tutorial on Rao-Blackwellised Particle Filtering for Dynamic Bayesian Networks. This detailed discussion of the ABC network should complement the UAI2000 paper by Arnaud Doucet, Nando de Freitas, Kevin Murphy and Stuart Russell. After downloading the file, type "tar -xf demorbpfdbn.tar" to uncompress it. This creates the directory webalgorithm containing the required m files. Go to this directory, load matlab5 and type "dbnrbpf" for the demo.
标签: Rao-Blackwellised conditional filtering particle
上传时间: 2013-12-14
上传用户:小儒尼尼奥