summing two vectors with operator overloading
標(biāo)簽: overloading operator summing vectors
上傳時(shí)間: 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.
標(biāo)簽: non-sharing containers pointer vector
上傳時(shí)間: 2015-06-15
上傳用戶:Late_Li
一種基于二維鏈表的稀疏矩陣模半板類設(shè)計(jì) 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.
標(biāo)簽: matrix technology template linked
上傳時(shí)間: 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)
標(biāo)簽: Sometimes the contents desire
上傳時(shí)間: 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++.
標(biāo)簽: methodically and patiently Thinking
上傳時(shí)間: 2014-01-03
上傳用戶:it男一枚
華東師范大學(xué)(面向?qū)ο蟪绦蛟O(shè)計(jì)基于C++)課程全部作業(yè)(12次)代碼,包含一個(gè)大整數(shù)類。(包含作業(yè)內(nèi)容) 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
標(biāo)簽: 大學(xué) 代碼 對(duì)象 程序設(shè)計(jì)
上傳時(shí)間: 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.
標(biāo)簽: compression university the submitted
上傳時(shí)間: 2014-01-15
上傳用戶:Altman
/*目的:使一個(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
1, 表達(dá)式一般由操作數(shù)(operand),運(yùn)算符(operator)和界限符(delimiter)組成。操作數(shù)可以有常數(shù),變量或者標(biāo)識(shí)符。運(yùn)算符分為算術(shù)運(yùn)算符,關(guān)系運(yùn)算符和邏輯運(yùn)算符。基本界限符有左右括號(hào)和表達(dá)式結(jié)束符號(hào)。為了程序簡(jiǎn)單,僅討論簡(jiǎn)單算術(shù)表達(dá)式的求值問(wèn)題。這種表達(dá)式只含加,減,乘,除和四則運(yùn)算符,括號(hào)以及結(jié)束符‘#’。 2, 算法基本思想: 建立兩個(gè)棧:一個(gè)是操作數(shù)棧(Stack_nd),用以寄存操作數(shù)或運(yùn)算結(jié)果;另一個(gè)是運(yùn)算符棧(Stack_tr),用以寄存運(yùn)算符和界限符。 依次讀入表達(dá)式中的字符,若是操作數(shù)則壓進(jìn)操作數(shù)棧(Stack_nd),若是運(yùn)算符,則與運(yùn)算棧(Stack_tr)的棧頂元素比較優(yōu)先級(jí),根據(jù)比較的結(jié)果進(jìn)行相應(yīng)的操作。 3, 規(guī)定算符間的優(yōu)先級(jí);算符q1與q2至多是下面三種關(guān)系之一: q1<q2 q1的優(yōu)先權(quán)低于q2 q1=q2 q1的優(yōu)先權(quán)等于 q2 q1>q2 q1的優(yōu)先權(quán)高于 q2
標(biāo)簽:
上傳時(shí)間: 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].
標(biāo)簽: optimization semidefinite programming GloptiPoly
上傳時(shí)間: 2016-06-05
上傳用戶:lgnf
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1