/*目的:使一個複數可顯數出來,可做+-/*,還要可以做>>跟<<的功能 題目:定義一個複數的class叫Complex,a(實部)與b(虛部)為double的型態,i表示根號-1, 1.必須包含一個建構子有兩個參數(double型態),能被用來設定物件中的變數為任意值 2.包含一個建構子只有一個參數(double型態),呼叫參數的實部且定義為"實部+0i" 3.包含一個預建構子可把物件初始化為0+0i 4.overload以下的operator以致於可以正確的執行:+ - * / << >> */
標簽:
上傳時間: 2013-12-27
上傳用戶:lindor
C程序設計語言于1978年出了第一版,此后,計算機世界經歷了一場革命,C語言也有了合理的變化。1988年美國國家標準學會就C語言的主義制訂出了ANSI C標準。本書第二版就是按這個標準來描述C語言的。全書八章,分別分:1.指導性緒論;2.數據類型、運算符與表達式;3.控制流;4.函數與結構;5.指針與數組;6.結構;7.輸入輸出;8.UNIX系統界面。書后附錄為:A.參考手冊;B.標準庫;C.語言
上傳時間: 2014-01-10
上傳用戶:tuilp1a
圖的深度遍歷,輸出結果為(紅色為鍵盤輸入的數據,權值都置為1): 輸入頂點數和弧數:8 9 輸入8個頂點. 輸入頂點0:a 輸入頂點1:b 輸入頂點2:c 輸入頂點3:d 輸入頂點4:e 輸入頂點5:f 輸入頂點6:g 輸入頂點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 深度優先遍歷: a b d h e c f g 程序結束.
標簽:
上傳時間: 2016-04-04
上傳用戶:lht618
本程序實現了一個序列檢測器。當一串待檢測的串行數據進入檢測器后,若此數在每一位的連續檢測中都與預置的密碼數相同,則輸出“A”,否則仍然輸出“B”。
上傳時間: 2016-05-28
上傳用戶:xsnjzljj
嵌入式應用程序的實驗報告 包括源碼,實驗結果等,包括任務的創建 掛起 刪除 任務A掛起任務B 等
上傳時間: 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)
上傳時間: 2016-07-01
上傳用戶:日光微瀾
ASP個人聊天系統 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"
標簽: MenuSwf case TopMenu select
上傳時間: 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.
標簽: Node Module-based capabilities Wireless
上傳時間: 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
標簽: package multi-label includes networks
上傳時間: 2013-12-05
上傳用戶:xsnjzljj
51單片連tcs230的源程序,絕對原創,可以記憶顏色。 #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 //關定時器 TR1=0 TH1=0xB1 TL1=0xE0 //歸0 TH0=0x00 TL0=0x00 //歸0 }
上傳時間: 2016-11-26
上傳用戶:秦莞爾w