CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - set of complex number
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Oracle
SQL Server
MySQL
Other Databases
Search - set of complex number - List
[
Database system
]
complex
DL : 0
/*目的:使一個複數可顯數出來,可做+-/*,還要可以做>>跟<<的功能 題目:定義一個複數的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:+-*/<<>>* /
Date
: 2025-12-29
Size
: 3kb
User
:
Mjuos Joun Bill
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.