summing two vectors with Operator overloading
標簽: overloading Operator summing vectors
上傳時間: 2017-09-15
上傳用戶:tb_6877751
a non-sharing smart pointer class that can be used with STL containers such as std::map, vector, list, set, and deque. The smart pointer has an assignment Operator and greater than Operator that call the target object s Operator.
標簽: non-sharing containers pointer vector
上傳時間: 2015-06-15
上傳用戶:Late_Li
一種基于二維鏈表的稀疏矩陣模半板類設計 A template Class of sparse matrix. Key technology: bin,2-m linked matrix. constructors: 1.normal constuctor 2.copy constuctor. 3.assignment constructor. Basic Operator: 1. addition(sub) of two matrix 2. inverse of a matrix. 3. multiply of two matrix. etc.
標簽: matrix technology template linked
上傳時間: 2013-12-13
上傳用戶:lwwhust
What Does the code DO? Sometimes we may desire to hide our file contents from others.One of the possible way is encrypting these files.Here a simple encryption technique is used(In VB - The same technique can be implemented in "c" also.) Program flow Explained * Open the File to be encrypted for Binary Access Read(Say Source File) * Open a temparory file where encrypted data is stored for Binary Access Write(Say Destination File) * Loop through the Source File Byte by Byte * For each byte read from the file, Complement the data. (Using Not Operator (in C we have to use "~" Operator) * Write Complemented Data to Destination File * Delete the Source File * Rename Destination file as Source File(Now Encryption is over)
標簽: Sometimes the contents desire
上傳時間: 2013-12-25
上傳用戶:playboys0
Thinking in C++ patiently and methodically explores the issues of when and how to use inlines, references, Operator overloading, inheritance and dynamic objects, as well as advanced topics such as the proper use of templates, exceptions and multiple inheritance. The entire effort is woven in a fabric that includes Eckel’s own philosophy of object and program design. A must for every C++ developer’s bookshelf, Thinking in C++ is the one C++ book you must have if you’re doing serious development with C++.
標簽: methodically and patiently Thinking
上傳時間: 2014-01-03
上傳用戶:it男一枚
華東師范大學(面向對象程序設計基于C++)課程全部作業(12次)代碼,包含一個大整數類。(包含作業內容) 1 How to use VC++ & IBM Visual Age (XL) C++ 2 Pointers, Arrays and Structures 3 Operators & Statements 4 Functions 5 Use of classes in STL 6 Define concrete classes 7 Data abstraction 8 Operator Overloading 9 Define integer type with arbitrary precision 10 Virtual functions 11 Templates 12 Exception handling
上傳時間: 2016-02-24
上傳用戶:baiom
the attached utility is a work I ve submitted to the university It shows what a jpeg compression is all about. the function implements the DCT transform, using a matrix Operator. note that matlab has a function for the DCT and iDCT transforms that might be more efficient.
標簽: compression university the submitted
上傳時間: 2014-01-15
上傳用戶:Altman
/*目的:使一個複數可顯數出來,可做+-/*,還要可以做>>跟<<的功能 題目:定義一個複數的class叫Complex,a(實部)與b(虛部)為double的型態,i表示根號-1, 1.必須包含一個建構子有兩個參數(double型態),能被用來設定物件中的變數為任意值 2.包含一個建構子只有一個參數(double型態),呼叫參數的實部且定義為"實部+0i" 3.包含一個預建構子可把物件初始化為0+0i 4.overload以下的Operator以致於可以正確的執行:+ - * / << >> */
標簽:
上傳時間: 2013-12-27
上傳用戶:lindor
1, 表達式一般由操作數(operand),運算符(Operator)和界限符(delimiter)組成。操作數可以有常數,變量或者標識符。運算符分為算術運算符,關系運算符和邏輯運算符。基本界限符有左右括號和表達式結束符號。為了程序簡單,僅討論簡單算術表達式的求值問題。這種表達式只含加,減,乘,除和四則運算符,括號以及結束符‘#’。 2, 算法基本思想: 建立兩個棧:一個是操作數棧(Stack_nd),用以寄存操作數或運算結果;另一個是運算符棧(Stack_tr),用以寄存運算符和界限符。 依次讀入表達式中的字符,若是操作數則壓進操作數棧(Stack_nd),若是運算符,則與運算棧(Stack_tr)的棧頂元素比較優先級,根據比較的結果進行相應的操作。 3, 規定算符間的優先級;算符q1與q2至多是下面三種關系之一: q1<q2 q1的優先權低于q2 q1=q2 q1的優先權等于 q2 q1>q2 q1的優先權高于 q2
標簽:
上傳時間: 2013-12-21
上傳用戶:FreeSky
GloptiPoly 3: moments, optimization and semidefinite programming. Gloptipoly 3 is intended to solve, or at least approximate, the Generalized Problem of Moments (GPM), an infinite-dimensional optimization problem which can be viewed as an extension of the classical problem of moments [8]. From a theoretical viewpoint, the GPM has developments and impact in various areas of mathematics such as algebra, Fourier analysis, functional analysis, Operator theory, probability and statistics, to cite a few. In addition, and despite a rather simple and short formulation, the GPM has a large number of important applications in various fields such as optimization, probability, finance, control, signal processing, chemistry, cristallography, tomography, etc. For an account of various methodologies as well as some of potential applications, the interested reader is referred to [1, 2] and the nice collection of papers [5].
標簽: optimization semidefinite programming GloptiPoly
上傳時間: 2016-06-05
上傳用戶:lgnf