サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
衆院選
cplusplus.com
This feature is only available for registered users Sign in Sign in using your cplusplus.com account: User name: Password: Remember me: (keeps you logged in between sessions) Or, using an external account: [I have lost my password] [Create a new account]
I have studied numbers of errors caused by using the Copy-Pate method and can assure you that programmers most often tend to make mistakes in the last fragment of a homogeneous code block. I have never seen this phenomenon described in books on programming, so I decided to write about it myself. I called it the "last line effect". Introduction My name is Andrey Karpov and I do an unusual job - I a
int sprintf ( char * str, const char * format, ... ); Composes a string with the same text that would be printed if format was used on printf, but instead of being printed, the content is stored as a C string in the buffer pointed by str. The size of the buffer should be large enough to contain the entire resulting string (see snprintf for a safer version). A terminating null character is automati
Input stream class to operate on files. Objects of this class maintain a filebuf object as their internal stream buffer, which performs input/output operations on the file they are associated with (if any). File streams are associated with files either on construction, or by calling member open. This is an instantiation of basic_ifstream with the following template parameters: template parameterde
template <class RandomAccessIterator> void sort (RandomAccessIterator first, RandomAccessIterator last); template <class RandomAccessIterator, class Compare> void sort (RandomAccessIterator first, RandomAccessIterator last, Compare comp); Sorts the elements in the range [first,last) into ascending order. The elements are compared using operator< for the first version, and comp for the second. Equi
A container is a holder object that stores a collection of other objects (its elements). They are implemented as class templates, which allows a great flexibility in the types supported as elements. The container manages the storage space for its elements and provides member functions to access them, either directly or through iterators (reference objects with similar properties to pointers). Cont
The header <algorithm> defines a collection of functions especially designed to be used on ranges of elements. A range is any sequence of objects that can be accessed through iterators or pointers, such as an array or an instance of some of the STL containers. Notice though, that algorithms operate through iterators directly on the values, not affecting in any way the structure of any possible con
Header that defines the standard input/output stream objects: Including this header may automatically include other headers, such as <ios>, <streambuf>, <istream>, <ostream> and/or <iosfwd>. Note that the iostream class is mainly declared in header <istream>. Objects Narrow characters (char) cinStandard input stream (object)coutStandard output stream (object)cerrStandard output stream for errors (
C++ Language Introduction Compilers Basics of C++ Structure of a program Variables and types Constants Operators Basic Input/Output Program structure Statements and flow control Functions Overloads and templates Name visibility Compound data types Arrays Character sequences Pointers Dynamic memory Data structures Other data types Classes Classes (I) Classes (II) Special members Friendship and inhe
C Library The elements of the C language library are also included as a subset of the C++ Standard library. These cover many aspects, from general utility functions and macros to input/output functions and dynamic memory management functions: <cassert> (assert.h)C Diagnostics Library (header)<cctype> (ctype.h)Character handling functions (header)<cerrno> (errno.h)C Errors (header)<cfenv> (fenv.h)F
Tutorials C++ Language: Learn this versatile and powerful programming language. Includes detailed explanations of pointers, functions, classes and templates, among others... Reference Description of the most important classes, functions and objects of the Standard Language Library, with descriptive fully-functional short programs as examples. Browse the C++ Reference Articles User-contributed arti
このページを最初にブックマークしてみませんか?
『cplusplus.com - The C++ resources network』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く