/*目的:使一個(gè)複數(shù)可顯數(shù)出來,可做+-/*,還要可以做>>跟<<的功能 題目:定義一個(gè)複數(shù)的class叫Complex,a(實(shí)部)與b(虛部)為double的型態(tài),i表示根號(hào)-1, 1.必須包含一個(gè)建構(gòu)子有兩個(gè)參數(shù)(double型態(tài)),能被用來設(shè)定物件中的變數(shù)為任意值 2.包含一個(gè)建構(gòu)子只有一個(gè)參數(shù)(double型態(tài)),呼叫參數(shù)的實(shí)部且定義為"實(shí)部+0i" 3.包含一個(gè)預(yù)建構(gòu)子可把物件初始化為0+0i 4.overload以下的operator以致於可以正確的執(zhí)行:+ - * / << >> */
標(biāo)簽:
上傳時(shí)間: 2013-12-27
上傳用戶:lindor
C程序設(shè)計(jì)語(yǔ)言于1978年出了第一版,此后,計(jì)算機(jī)世界經(jīng)歷了一場(chǎng)革命,C語(yǔ)言也有了合理的變化。1988年美國(guó)國(guó)家標(biāo)準(zhǔn)學(xué)會(huì)就C語(yǔ)言的主義制訂出了ANSI C標(biāo)準(zhǔn)。本書第二版就是按這個(gè)標(biāo)準(zhǔn)來描述C語(yǔ)言的。全書八章,分別分:1.指導(dǎo)性緒論;2.數(shù)據(jù)類型、運(yùn)算符與表達(dá)式;3.控制流;4.函數(shù)與結(jié)構(gòu);5.指針與數(shù)組;6.結(jié)構(gòu);7.輸入輸出;8.UNIX系統(tǒng)界面。書后附錄為:A.參考手冊(cè);B.標(biāo)準(zhǔn)庫(kù);C.語(yǔ)言
標(biāo)簽: 1978 C程序設(shè)計(jì) 語(yǔ)言
上傳時(shí)間: 2014-01-10
上傳用戶:tuilp1a
圖的深度遍歷,輸出結(jié)果為(紅色為鍵盤輸入的數(shù)據(jù),權(quán)值都置為1): 輸入頂點(diǎn)數(shù)和弧數(shù):8 9 輸入8個(gè)頂點(diǎn). 輸入頂點(diǎn)0:a 輸入頂點(diǎn)1:b 輸入頂點(diǎn)2:c 輸入頂點(diǎn)3:d 輸入頂點(diǎn)4:e 輸入頂點(diǎn)5:f 輸入頂點(diǎn)6:g 輸入頂點(diǎn)7:h 輸入9條弧. 輸入弧0:a b 1 輸入弧1:b d 1 輸入弧2:b e 1 輸入弧3:d h 1 輸入弧4:e h 1 輸入弧5:a c 1 輸入弧6:c f 1 輸入弧7:c g 1 輸入弧8:f g 1 深度優(yōu)先遍歷: a b d h e c f g 程序結(jié)束.
標(biāo)簽:
上傳時(shí)間: 2016-04-04
上傳用戶:lht618
本程序?qū)崿F(xiàn)了一個(gè)序列檢測(cè)器。當(dāng)一串待檢測(cè)的串行數(shù)據(jù)進(jìn)入檢測(cè)器后,若此數(shù)在每一位的連續(xù)檢測(cè)中都與預(yù)置的密碼數(shù)相同,則輸出“A”,否則仍然輸出“B”。
標(biāo)簽: 檢測(cè)器 程序 序列 串行數(shù)據(jù)
上傳時(shí)間: 2016-05-28
上傳用戶:xsnjzljj
嵌入式應(yīng)用程序的實(shí)驗(yàn)報(bào)告 包括源碼,實(shí)驗(yàn)結(jié)果等,包括任務(wù)的創(chuàng)建 掛起 刪除 任務(wù)A掛起任務(wù)B 等
標(biāo)簽: 嵌入式 實(shí)驗(yàn)報(bào)告 應(yīng)用程序 源碼
上傳時(shí)間: 2013-12-14
上傳用戶:宋桃子
System.out.print(s) System.out.println(t) System.out.print(u) System.out.println(v) System.out.print(a) System.out.print(b) System.out.print(c) System.out.println(d) x=0x5f20 y=0x5f35 z=0xffff System.out.print(x) System.out.print(y) System.out.println(z)
標(biāo)簽: System out println print
上傳時(shí)間: 2016-07-01
上傳用戶:日光微瀾
ASP個(gè)人聊天系統(tǒng) If MenuSwf="" Then MenuSwf="About" select case lcase(MenuSwf) case "about" TopMenu="a" case "news" TopMenu="b" case "project" TopMenu="c" case "clients" TopMenu="e" case "contact" TopMenu="f" case "mainbinner" TopMenu="g" case "person" TopMenu="h"
標(biāo)簽: MenuSwf case TopMenu select
上傳時(shí)間: 2016-07-11
上傳用戶:lht618
A Module-based Wireless Node (MW-Node) is a Node with wireless and mobile capabilities added by means of modules. It is not a new node object derived from Node. Rather it is a new layout of mostly existing components. Rationale for this new design has been presented in [1]. The MW-Node provides a flexible support for wireless and mobile networking and in particular: support for multiple interfaces/multiple channels, and a common basis for the implementation of wireless routing protocols.
標(biāo)簽: Node Module-based capabilities Wireless
上傳時(shí)間: 2013-12-26
上傳用戶:大三三
BPMLL is a package for training multi-label BP neural networks. The package includes the MATLAB code of the algorithm BP-MLL, which is designed to deal with multi-label learning. It is in particular useful when a real-world object is associated with multiple labels simultaneously
標(biāo)簽: package multi-label includes networks
上傳時(shí)間: 2013-12-05
上傳用戶:xsnjzljj
51單片連tcs230的源程序,絕對(duì)原創(chuàng),可以記憶顏色。 #define uchar unsigned char #include <reg52.h> #include<math.h> sbit S0=P1^7 sbit S1=P1^0 //端口定義 sbit S2=P1^1 sbit S3=P1^2 sbit OE=P1^3 sbit OUT=P3^4 //頻率從TO口輸入 sbit key0=P1^5 sbit LED=P1^6 sbit a=P3^0 sbit b=P3^1 uchar color //1:blue 2:green 3:red uchar T[4] //color timer uchar TH[4] uchar TL[4] uchar bizhi[4] void time1() interrupt 3 { TH[color]=TH0 TL[color]=TL0 T[color]=(TH[color]*0xff+TL[color]) TR0=0 //關(guān)定時(shí)器 TR1=0 TH1=0xB1 TL1=0xE0 //歸0 TH0=0x00 TL0=0x00 //歸0 }
上傳時(shí)間: 2016-11-26
上傳用戶:秦莞爾w
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1