/*目的:使一個複數可顯數出來,可做+-/*,還要可以做>>跟<<的功能 題目:定義一個複數的class叫Complex,a(實部)與b(虛部)為double的型態,i表示根號-1, 1.必須包含一個建構子有兩個參數(double型態),能被用來設定物件中的變數為任意值 2.包含一個建構子只有一個參數(double型態),呼叫參數的實部且定義為"實部+0i" 3.包含一個預建構子可把物件初始化為0+0i 4.overload以下的operator以致於可以正確的執行:+ - * / << >> */
標簽:
上傳時間: 2013-12-27
上傳用戶:lindor
要求:編寫一個應用程序,對程序中給定的四個double型數據求其最大值和最小值。 文檔包括了實驗要求和詳細的源代碼.
上傳時間: 2013-12-23
上傳用戶:Divine
多項式曲線擬合 任意介數 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.
標簽: Least-squares arbitrary Purpose Builder
上傳時間: 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.
標簽: forms-driven interactive Stockholm Berntzon
上傳時間: 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
上傳時間: 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
標簽: Levenberg-Marquardt implementation non-linear algorithm
上傳時間: 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.
標簽: driver This controllers directory
上傳時間: 2016-06-28
上傳用戶:caiiicc
輕易學好C++編程技巧 - 進楷 (香港科技大學筆記 19課) 內容包括 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
標簽: Pointers Dynamic Objects review
上傳時間: 2014-10-10
上傳用戶:chfanjiang
(1) 設計和編寫代表矩陣的Matrix類。該類包括矩陣行列數變量int rows和int cols,矩陣數據數組double data[][],構造方法Matrix()、Matrix(int rows,int cols)、Matrix(int rows,int cols,double data[][]),獲取某元素值的方法getData(int row,int col),設置某元素值的方法setData(int row,int col,double value),計算兩個矩陣的乘積的方法multiply(Matrix m)以及toString()等內容。
上傳時間: 2016-08-19
上傳用戶:qiao8960
(1) 實現一個Point類,該類包含表示坐標的兩個int型變量x、y,構造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,計算兩點間距離的double distance(Point)方法。其中計算平方根用Math.sqrt()方法。 (2) 實現一個Circle類,該類包含表示圓心的Point型變量center,表示半徑的int radius變量,以及構造方法Circle()、Circle(int xx,int yy,int r)、Circle(Point c,int r),返回周長和面積的int perimeter()、double area()方法,返回兩個圓是否為同一個圓(返回0)、同心圓(返回1)、相交的圓(返回2)、分離的圓(返回3)、包含的圓(返回4)等關系的int relation(Circle c)等方法。PI值可以用Math.PI常量。 (3) 實現測試上述兩個類的ClassTest類。該類在main方法中分別創建若干個Point對象和Circle對象,并調用相關方法,輸出方法的返回值,驗證其正確性。 (4) 將Point類、Circle類和主類的包名分別調整為p1、p2、p3,并重新運行,驗證是否運行正確。
標簽: Point
上傳時間: 2014-11-25
上傳用戶:cylnpy