本書由知名的C++專家Matthew H.Austern執(zhí)筆,引導(dǎo)你進(jìn)入泛型編程思維模型,并將你帶往此一模型的最重要成品:C++ Standard TEMPLATE Library(STL)。本書揭示STL的奧秘,告訴你STL不僅僅是一組方便運(yùn)用的容器類(container classes)。對于泛型組件和可交互作用的組件而言,STL是一個具備擴(kuò)充能力的框架(framework)、 《泛型編程與STL》闡述了泛型編程的中心思想:concepts、modeling、refinement,并為你展示這些思想如何導(dǎo)出STL的基礎(chǔ)概念:iterators、containers、function objects。循此路線,你可以把STL想像為一個由concepts(而非明確之functions或classes)組成的程序庫:、你將學(xué)習(xí)其正式結(jié)構(gòu)并因此獲得其潛在威力所帶來的完整優(yōu)勢。本書使你能夠: ●以你自己的“可移植組件”及“可交互作用之泛型組件”擴(kuò)充STL; ●產(chǎn)生一些算法,讓它們和它們所處理之型別(types)及數(shù)據(jù)結(jié)構(gòu)徹底劃清界線; ●撰寫更精致、更高效、更有效力的代碼,可跨平臺重復(fù)使用。
上傳時(shí)間: 2014-01-06
上傳用戶:Avoid98
This book systematically introduced the Standard C Library and the C++ library, C++ Standard TEMPLATE Library.The features are presented both in alphabetic order and by category.
標(biāo)簽: Standard systematically introduced the
上傳時(shí)間: 2015-11-14
上傳用戶:semi1981
We propose a novel approach for head tracking, which combines particle filters with Isomap. The particle filter works on the low-dimensional embedding of training images. It indexes into the Isomap with its state variables to find the closest TEMPLATE for each particle. The most weighted particle approximates the location of head. We develop a synthetic video sequence to test our technique. The results we get show that the tracker tracks the head which changes position, poses and lighting conditions.
標(biāo)簽: approach combines particle tracking
上傳時(shí)間: 2016-01-02
上傳用戶:yy541071797
《C++標(biāo)準(zhǔn)程序庫》本書不僅對每一個程序庫組件提供范圍廣泛的說明,也對繁復(fù)的觀念提供清楚明亮的解釋,并描述高效運(yùn)用這些組件時(shí)需要的實(shí)際編程細(xì)節(jié),提出一個又一個的范例程序。本書是一本包含最新資料的完整書籍。反映出被ANSI/ISO C++語言標(biāo)準(zhǔn)規(guī)格書納入C++標(biāo)準(zhǔn)程序庫的最新組成。更明確地說,本書將焦點(diǎn)放在標(biāo)準(zhǔn)模板庫(Standard TEMPLATE Library)身上,檢驗(yàn)其中的容器(containers)
標(biāo)簽: 程序庫 標(biāo)準(zhǔn)
上傳時(shí)間: 2016-02-27
上傳用戶:qiaoyue
26.編寫一個具有如下樣式的類模板tmplt,用于實(shí)現(xiàn)所謂的反序輸出問題,其中使用了類型參數(shù)T(使所處理的元素類型可變化)以及普通參數(shù)n(元素個數(shù)也可變化): TEMPLATE <class T, int n> class tmplt { T arr[n] // n個T類型的數(shù)據(jù)存放于數(shù)組arr之中 public: void dataIn() //從鍵盤輸入n個T類型數(shù)據(jù)放入arr數(shù)組中 void reverseOut() //將arr數(shù)組中的數(shù)據(jù)按輸入的相反順序輸出 } 而后編制主函數(shù),將類模板實(shí)例化為某個具體的類并說明類對象,之后通過對象調(diào)用其負(fù)責(zé)輸入數(shù)據(jù)的成員函數(shù),再通過對象調(diào)用另一成員函數(shù)按反序輸出那些輸入數(shù)據(jù)。
上傳時(shí)間: 2014-01-07
上傳用戶:xiaoxiang
File name: main.c ** Last modified Date: 2006-09-26 ** Last Version: 1.0 ** Descriptions: The main() function example TEMPLATE ** **------------------------------------------------------------------------------------------------------ ** Created by: ** Created date: 2006-09-16 ** Version: 1.0 ** Descriptions: The original version ** **------------------------------------------------------------------------------------------------------ ** Modified by: Driver IC:ili9320 18BIT ** Modified date: vcs320240-2006-0 ** Version: ** Descriptions:
標(biāo)簽: Last Descriptions modified Version
上傳時(shí)間: 2016-04-01
上傳用戶:R50974
多項(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
上傳用戶:宋桃子
程序設(shè)計(jì)當(dāng)中經(jīng)常會出現(xiàn)使用同種數(shù)據(jù)結(jié)構(gòu)的不同實(shí)例的情況。例如:在一個程序中 可以使用多個隊(duì)列、樹、圖等結(jié)構(gòu)來組織數(shù)據(jù)。同種結(jié)構(gòu)的不同實(shí)例,也許只在數(shù)據(jù)元素 的類型或數(shù)量上略有差異,如果對每個實(shí)例都重新定義,則非常麻煩且容易出錯。那么能 否對同種類型數(shù)據(jù)結(jié)構(gòu)僅定義一次呢?答案是肯定的,C++提供的類模板(Class TEMPLATE )就可以實(shí)現(xiàn)該功能。
標(biāo)簽: 數(shù)據(jù) 程序設(shè)計(jì) 數(shù)據(jù)結(jié)構(gòu) 元素
上傳時(shí)間: 2014-01-19
上傳用戶:zl5712176
This m file models a DPSK UWB system using a delay in one leg of the mixer, correlation receiver low pass filter combination requiring no TEMPLATE for synching. Various waveforms are displayed throughout the system to allow the user to observe operation of the system.
標(biāo)簽: correlation receiver models system
上傳時(shí)間: 2013-12-25
上傳用戶:yyyyyyyyyy
c++二、通過將其元素插入到雙向鏈表中的方法對數(shù)組A進(jìn)行排序。算法對鏈表的當(dāng)前操作位置進(jìn)行維護(hù),當(dāng)需要插入表項(xiàng)時(shí),若新元素比當(dāng)前位置值要大,則往前移動;若小則往后移動。編寫函數(shù)DoubleSort實(shí)現(xiàn)上述排序算法。 TEMPLATE <class T> void DoubliSort( T a[], int n)
上傳時(shí)間: 2013-12-03
上傳用戶:gundamwzc
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1