/*目的:使一個(gè)複數(shù)可顯數(shù)出來(lái),可做+-/*,還要可以做>>跟<<的功能 題目:定義一個(gè)複數(shù)的class叫Complex,a(實(shí)部)與b(虛部)為double的型態(tài),i表示根號(hào)-1, 1.必須包含一個(gè)建構(gòu)子有兩個(gè)參數(shù)(double型態(tài)),能被用來(lá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
要求:編寫一個(gè)應(yīng)用程序,對(duì)程序中給定的四個(gè)double型數(shù)據(jù)求其最大值和最小值。 文檔包括了實(shí)驗(yàn)要求和詳細(xì)的源代碼.
標(biāo)簽: 編寫 應(yīng)用程序
上傳時(shí)間: 2013-12-23
上傳用戶:Divine
多項(xiàng)式曲線擬合 任意介數(shù) Purpose - Least-squares curve fit of arbitrary order working in C++ Builder 2007 as a template class, using vector<FloatType> parameters. Added a method to handle some EMathError exceptions. If do NOT want to use this just call PolyFit2 directly. usage: Call PolyFit by something like this. CPolyFit<double> PolyFitObj double correlation_coefficiant = PolyFitObj.PolyFit(X, Y, A) where X and Y are vectors of doubles which must have the same size and A is a vector of doubles which must be the same size as the number of coefficients required. returns: The correlation coefficient or -1 on failure. produces: A vector (A) which holds the coefficients.
標(biāo)簽: Least-squares arbitrary Purpose Builder
上傳時(shí)間: 2013-12-18
上傳用戶:宋桃子
CForms, by Lars Berntzon (Stockholm, Sweden), is a tool for building interactive forms-driven applications. CForms applications can run on nany type of library supported by the "curses" library. CForms uses a language-based design to define forms. An application may contain C source modules, field pictures, field definitions, literals, and events. CForms applications must be compiled with the CFC compiler and linked with the CFL linker.CForms runs on most Unix SYSV compatible platforms including SunOS, Dell-SVR4, and Diab SYSV.3. It requires a curses library and yacc or GNU Bison. CForms version 2.1 is now available as volume #402 in the CUG Library.
標(biāo)簽: forms-driven interactive Stockholm Berntzon
上傳時(shí)間: 2013-12-20
上傳用戶:himbly
/* * The internal form of a hash table. * * The table is an array indexed by the hash of the key collisions * are resolved by hanging a linked list of hash entries off each * element of the array. Although this is a really simple design it * isn t too bad given that pools have a low allocation overhead. */ split from apache for general usage
上傳時(shí)間: 2014-01-07
上傳用戶:gtf1207
C/C++ implementation of the Levenberg-Marquardt non-linear least squares algorithm. levmar includes double and single precision LM versions, both with analytic and finite difference approximated jacobians
標(biāo)簽: Levenberg-Marquardt implementation non-linear algorithm
上傳時(shí)間: 2013-12-28
上傳用戶:gxf2016
This directory builds the miniport driver for Adaptec’s 1540 family of SCSI controllers. This driver exports several functions which are used by SCSIPORT.SYS to issue SCSI requests to the devices attached to the controller, process adapter interrupts, and various other SCSI activities. This driver is also responsible for detecting non-Plug and Play 1540 SCSI controllers—the Plug and Play controllers are detected by the operating system—and for shutting down the controller during device removal or power management operations. This sample also demonstrates the use of the SCSIWMI library to add WMI functionality to SCSI miniports. This library can be linked into a miniport and provides most of the framework needed to expose WMI data blocks to SCSIPORT and the system.
標(biāo)簽: driver This controllers directory
上傳時(shí)間: 2016-06-28
上傳用戶:caiiicc
輕易學(xué)好C++編程技巧 - 進(jìn)楷 (香港科技大學(xué)筆記 19課) 內(nèi)容包括 1) base C++ review, 2) Pointers and Dynamic Objects, 3) Recursion,Linked Lists, 4) Stacks and Queues, 5) Algorithm Analysis, 6) Insertion Sort and Mergesort, 7) Quicksort, 8) Heaps and Heapsort, 9) Lower Bound of Sorting and Radix Sort, 10) Binary Trees and Binary Search Trees 11) AVL Trees, 12) B+ Trees 13) Graphs and Breadth-First Search 14) Depth-First Search 15) Connected Components, Directed Graphs, 16) Topological Sort 17) Hashing 18) Pattern Matching 19) Additional Review
標(biāo)簽: Pointers Dynamic Objects review
上傳時(shí)間: 2014-10-10
上傳用戶:chfanjiang
(1) 設(shè)計(jì)和編寫代表矩陣的Matrix類。該類包括矩陣行列數(shù)變量int rows和int cols,矩陣數(shù)據(jù)數(shù)組double data[][],構(gòu)造方法Matrix()、Matrix(int rows,int cols)、Matrix(int rows,int cols,double data[][]),獲取某元素值的方法getData(int row,int col),設(shè)置某元素值的方法setData(int row,int col,double value),計(jì)算兩個(gè)矩陣的乘積的方法multiply(Matrix m)以及toString()等內(nèi)容。
標(biāo)簽: int Matrix cols rows
上傳時(shí)間: 2016-08-19
上傳用戶:qiao8960
(1) 實(shí)現(xiàn)一個(gè)Point類,該類包含表示坐標(biāo)的兩個(gè)int型變量x、y,構(gòu)造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,計(jì)算兩點(diǎn)間距離的double distance(Point)方法。其中計(jì)算平方根用Math.sqrt()方法。 (2) 實(shí)現(xiàn)一個(gè)Circle類,該類包含表示圓心的Point型變量center,表示半徑的int radius變量,以及構(gòu)造方法Circle()、Circle(int xx,int yy,int r)、Circle(Point c,int r),返回周長(zhǎng)和面積的int perimeter()、double area()方法,返回兩個(gè)圓是否為同一個(gè)圓(返回0)、同心圓(返回1)、相交的圓(返回2)、分離的圓(返回3)、包含的圓(返回4)等關(guān)系的int relation(Circle c)等方法。PI值可以用Math.PI常量。 (3) 實(shí)現(xiàn)測(cè)試上述兩個(gè)類的ClassTest類。該類在main方法中分別創(chuàng)建若干個(gè)Point對(duì)象和Circle對(duì)象,并調(diào)用相關(guān)方法,輸出方法的返回值,驗(yàn)證其正確性。 (4) 將Point類、Circle類和主類的包名分別調(diào)整為p1、p2、p3,并重新運(yùn)行,驗(yàn)證是否運(yùn)行正確。
標(biāo)簽: Point
上傳時(shí)間: 2014-11-25
上傳用戶:cylnpy
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1