Location:
Search - complex class
Search list
Description: 实现一个complex class.(数学里的复数)运算符的重载
Platform: |
Size: 5118 |
Author: 596874489@qq.com |
Hits:
Description: /*目的:使一個複數可顯數出來,可做+-/*,還要可以做>>跟<<的功能
題目:定義一個複數的class叫Complex,a(實部)與b(虛部)為double的型態,i表示根號-1,
1.必須包含一個建構子有兩個參數(double型態),能被用來設定物件中的變數為任意值
2.包含一個建構子只有一個參數(double型態),呼叫參數的實部且定義為"實部+0i"
3.包含一個預建構子可把物件初始化為0+0i
4.overload以下的operator以致於可以正確的執行:+ - * / << >>
*/-/* Purpose: To make a plural number may be significantly out of 2B !-/*, can also can be done>> with <<the function of the subject: the definition of the class is called a plural Complex, a (real part) and b (virtual Department) for the double type, i said kan-1,1 No.. must contain a sub-construct two parameters (double type), can be used to set object variables for arbitrary value of 2. contains a sub-construct There is only one parameter (double type), call parameters and the real part is defined as the real part of+ 0i 3. contains a pre-construction sub-object can be initialized to 0+ 0i4.overload below so operator can correct the implementation of:+-*/<<>>* /
Platform: |
Size: 3072 |
Author: Mjuos Joun Bill |
Hits:
Description: 复数类,用模板写的,随便写的,只为进去下载代码-complex class
Platform: |
Size: 522240 |
Author: 向水桥 |
Hits:
Description: C++实现的复数+_*/运算,自己用了很多年了-C++ complex
Platform: |
Size: 1024 |
Author: dajunsi |
Hits:
Description: 复数类,实现了复数多种功能,需要的可以看一下-Complex class, implements a variety of complex functions, need to look at
Platform: |
Size: 2048 |
Author: 银河浣星 |
Hits:
Description: c++简单复数类的运算,包括加法,减法,乘法,除法运算(没用到重载)-c++ simple and complex class operations, including addition, subtraction, multiplication, division operations (useless to overload)
Platform: |
Size: 886784 |
Author: MY NAME |
Hits:
Description: 重载复数的加减乘除运算.用C++类的思想实现.-Overloaded complex addition and subtraction multiplication and division operations. Using C++ class ideology.
Platform: |
Size: 232448 |
Author: Jason |
Hits:
Description: 这是一个简单的复数类的实例,描述了基本的c++的知识,可供初学者学习~-this is a complex class,for new learner
Platform: |
Size: 4096 |
Author: vivian |
Hits:
Description: 编写的一个复数类和一个测试类,用了继承与静态方法。-Preparation of a complex class and a test class with static methods and inheritance.
Platform: |
Size: 5120 |
Author: 吴超 |
Hits:
Description: C#实现的COMPLEX类模拟,VS2005下运行-C# implementation of the COMPLEX class simulation, VS2005 run
Platform: |
Size: 17408 |
Author: panchao |
Hits:
Description: complex类的运算符重载代码,包括加,减,乘,除-complex class
Platform: |
Size: 1024 |
Author: 刘涛 |
Hits:
Description: 复数类的构造,实现基本的四则运算,如加、减、乘、除-The construction of complex class
Platform: |
Size: 1024 |
Author: lacey |
Hits:
Description: 这是在vc++环境下,定义复数类、实现复数类、并进行了复数类的测试的完整程序代码。-This is in vc++ environment, the definition of complex classes, to achieve complex class and the test carried out a complete complex class code.
Platform: |
Size: 7168 |
Author: 鹤中云 |
Hits:
Description: 设计一个复数类,能够完成复数之间的基本运算,重写方法toString(),使其能输出此复数-Design a complex class, able to complete basic operations between plural, override method toString (), so that it can output the complex
Platform: |
Size: 1024 |
Author: 柯昕 |
Hits:
Description: 复数类Complex,运算符重载,修改了网上代码,可在各平台上实现连续运算,不会报错了-Complex class Complex, operator overloading, to modify the online code can achieve continuous operation of the platform, not an error of the
Platform: |
Size: 2048 |
Author: 江乐 |
Hits:
Description: 声明并测试一个复数类,类中的方法包括复数的加、减、乘运算,还可以根据代码的情况进行扩充。 -complex class
Platform: |
Size: 1024 |
Author: ztf |
Hits:
Description: 复数类的C++实现,重载了输入输出和+、-、*、/等操作符-The complex class C++ to achieve overload the input and output and+,-,*,/operators
Platform: |
Size: 9216 |
Author: hali |
Hits:
Description: A complex class for arithmatics on complex numbers
Platform: |
Size: 1024 |
Author: hammad91 |
Hits:
Description: 该类中含有复数运算及矩阵运算的多个方法,这些方法都是通过参考书籍所实现的,能够很好的运用到复数运算中,经过检验运算误差非常小,甚至比matlab的精度还高(C# complex matrix)
Platform: |
Size: 14336 |
Author: 弦可道
|
Hits:
Description: C#中编写复数类的文件,应在其他程序中进行调用(C# in the preparation of the complex class of documents, should be invoked in other programs)
Platform: |
Size: 252928 |
Author: 真人
|
Hits:
« 12
3
4
5
6
7
8
9
10
...
19
»