1. Trang chủ
  2. » Công Nghệ Thông Tin

Nicolai josutis the c++ standard library a tutorial and reference

642 408 1

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 642
Dung lượng 4,57 MB

Nội dung

Đây là quyển sách tiếng anh về lĩnh vực công nghệ thông tin cho sinh viên và những ai có đam mê. Quyển sách này trình về lý thuyết ,phương pháp lập trình cho ngôn ngữ C và C++.

[...]... few years, C++ programmers have a standard and the chance to write powerful code that is portable to very different platforms 2.2 New Language Features The core language and the library of C++ were standardized in parallel In this way, the library could benefit from improvements in the language and the language could benefit from experiences of library implementation In fact, during the standardization... component of the library existed as a de facto standard before standardization began: the IOStream library Developed in 1984, it was reimplemented and partially redesigned in 1989 Because many programs were using it already, the general concept of the IOStream library was not changed, thus keeping it backward compatible In general, the whole standard (language and library) is the result of a lot of discussions... So, if a participant doesn't work for a company that has a special interest in the standard, the work is done for fun Thank goodness there were a lot of dedicated people who had the time and the money to do just that The C++ standard was not developed from scratch It was based on the language as described by Bjarne Stroustrup, the creator of C++ The standard library, however, was not based on a book... several physical modules A typical example of such a component is the C++ standard library, so it follows that it uses a namespace In fact, all identifiers of the C++ standard library are defined in a namespace called std According to the concept of namespaces, you have three options when using an identifier of the C++ standard library: 1 You can qualify the identifier directly For example, you can write... by the national bodies of the ISO, such as the ANSI in the United States.[1] [1] At the time this book was written, you could get the C++ standard at the ANSI Electronics Standard Store for $ 18.00 (US; see http://www.ansi.org/) The standard was an important milestone for C++ Because it defines the exact contents and behavior of C++, it makes it easier to teach C++, to use C++ in applications, and. .. C++ programs to different platforms It also gives users greater freedom of choice regarding different C++ implementations Its stability and portability help library providers and tool providers as well as implementers Thus, the standard helps C++ application developers build better applications faster, and maintain them with less cost and effort Part of the standard is a standard library This library. .. or flags • Chapter 11: Strings This chapter describes the string types of the C++ standard library (yes, there are more than one) The standard provides strings as kind of "self-explanatory" fundamental data types with the ability to use different types of characters dyne-book 10 The C++ Standard Library • Chapter 12: Numerics This chapter describes the numeric components of the C++ standard library. .. 29 The C++ Standard Library 1 Exceptions for language support 2 Exceptions for the C++ standard library 3 Exceptions for errors outside the scope of a program Exception Classes for Language Support Exceptions for language support are used by language features So in a way they are part of the core language rather than the library These exceptions are thrown when the following operations fail • • • • An... guide and structured reference manual regarding the C++ standard library The individual components of the C++ standard library are independent of each other, to some extent, so after reading Chapters 2 through 4 you could read the chapters that discuss the individual components in any order Bear in mind, that Chapter 5 through Chapter 9 all describe the same component To understand the other STL chapters,... successful (any value other than 0 represents a kind of failure) Because of this, my examples in this book have no return statement at the end of main() Note that some dyne-book 24 The C++ Standard Library compilers might print a warning message regarding this or even handle it as error Well, that's life before the standard 2.3 Complexity and the Big-O Notation For certain parts of the C++ standard library . international ISO and ANSI standard in 1998. The standardization process included the development of a C++ standard library. The library extends the core. class="bi x0 y0 w0 h0" alt=""

Ngày đăng: 19/03/2014, 14:11

TỪ KHÓA LIÊN QUAN