C++名家精華.chm 我們用早期的C++語言編程。工作的第二天中午,厭煩了讀職工手冊,于是我寫了一個工具類,里面包含一個原始指針作為成員變量: #include "xStruct.h" // definition of struct X class xWrapper { X* xItem public: xWrapper() : xItem(new X) { } ~xWrapper() { delete xItem } void dump() { /* dumps xItem to cout */ } } 當(dāng)然了,使用這個類的程序由于內(nèi)存問題總是時不時的崩潰,因為我違反三個重要設(shè)計原則之一:任何時候,只要你提供了析構(gòu)函數(shù)、拷貝構(gòu)造函數(shù)或賦值運算符中的一個,你通常需要三個都提供。([1]) “所以,”我自言自語道,“我必須自己處理拷貝和賦值問題。簡單地...auto_ptr有拷貝構(gòu)造函數(shù)和賦值運算符,我可以拿過來用一下。”(你知道早期C++程序庫中的auto_ptr,是嗎?)
上傳時間: 2013-12-28
上傳用戶:Amygdala
** File name: target.h ** Last modified Date: 2004-09-17 ** Last Version: 1.0 ** Descriptions: header file of the specific codes for LPC2100 target boards ** Every project should include a copy of this file, user may modify it as ne
標(biāo)簽: Last Description modified Version
上傳時間: 2014-05-30
上傳用戶:wanghui2438
This guide reviews the rules and syntax of the principle commands that comprise C and its object-oriented cousin, C++. The reference consists of 19 chapters that define operators and the standard input/output, string, character, and more.
標(biāo)簽: object-ori and principle the
上傳時間: 2014-01-15
上傳用戶:ve3344
很好的一本工具書,提供了C/C++函數(shù)查詢,分為以下幾個方面闡述,預(yù)處理命令、關(guān)鍵字、標(biāo)準(zhǔn)C的I/O,String,Charactor,Math,Time,Data,Memory,以及C++的I/O,String,及標(biāo)準(zhǔn)模版類。推薦。
標(biāo)簽:
上傳時間: 2013-12-04
上傳用戶:huql11633
一. 需求分析 1. 本程序的功能 接受用戶的中文輸入,用string 保存,能夠按選定的數(shù)據(jù)結(jié)構(gòu)設(shè)計相應(yīng)的算法。當(dāng)從乘車站到目的站存在多種乘車路線時,可以確定選取標(biāo)準(zhǔn)。例如,要求換車次數(shù)最少、經(jīng)過站點最少等。 2. 輸入形式 輸入站名或本系統(tǒng)提供的站名所對應(yīng)的序號 3. 輸出的形式 輸出按用戶的選取標(biāo)準(zhǔn)的路線
上傳時間: 2016-06-26
上傳用戶:lijianyu172
PHP Cookbook has a wealth of solutions for problems that you ll face regularly. With topics that range from beginner questions to advanced web programming techniques, this guide contains practical examples -- or "recipes" -- for anyone who uses this scripting language to generate dynamic web content. Updated for PHP 5, this book provides solutions that explain how to use the new language features in detail, including the vastly improved object-oriented capabilities and the new PDO data access extension. New sections on classes and objects are included, along with new material on processing XML, building web services with PHP, and working with SOAP/REST architectures. With each recipe, the authors include a discussion that explains the logic and concepts underlying the solution.
標(biāo)簽: that solutions regularly Cookbook
上傳時間: 2014-12-03
上傳用戶:努力努力再努力
GNU Common C++ is a very portable and highly optimized class framework for writing C++ applications that need to use threads and support concurrent sychronization, and that use sockets, XML parsing, object serialization, thread-optimized String and data structure classes, etc. This framework offers a class foundation that hides platform differences from your C++ application so that you need not write platform specific code. GNU Common C++ has been ported to compile nativily on most platforms which support either posix threads, or on maybe be used with Debian hosted mingw32 to build native threading applications for Microsoft Windows.
標(biāo)簽: applications framework optimized portable
上傳時間: 2014-01-02
上傳用戶:luke5347
自己寫的jiava程序,測試string類型的數(shù)據(jù)結(jié)構(gòu)的作用,寫了寫常用的功能
上傳時間: 2016-07-02
上傳用戶:q123321
Network Tools In this exercise, you will make use of common network tools. For each part below, capture the appropriate program output and include it with your answers to the questions.
標(biāo)簽: exercise Network network common
上傳時間: 2013-12-11
上傳用戶:ywqaxiwang
Numerical Computing with MATLAB (by Cleve Moler) is a textbook for an introductory course in numerical methods, Matlab, and technical computing. The emphasis is on in- formed use of mathematical software. We want you learn enough about the mathe- matical functions in Matlab that you will be able to use them correctly, appreciate their limitations, and modify them when necessary to suit your own needs. The topics include * introduction to Matlab, * linear equations, * interpolation, * zero and roots, * least squares, * quadrature, * ordinary di?erential equations, * random numbers, * Fourier analysis, * eigenvalues and singular values, * partial di?erential equations.
標(biāo)簽: introductory Numerical Computing textbook
上傳時間: 2016-07-04
上傳用戶:思琦琦
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1