The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.cppreference.com/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
<title>C++ Reference</title>
<description></description>
<dc:date>2010-05-06T17:44:35-07:00</dc:date>
<items>
<rdf:Seq>
</rdf:Seq>
</items>
</channel>
<title>C++ Reference</title>
</image>
<dc:format>text/html</dc:format>
<dc:date>2010-05-06T07:40:53-07:00</dc:date>
<title>continue - créée</title>
<description>continue
Le mot-clé continue peut être utilisé pour sauter certaines itérations d'une boucle. Par exemple, le code suivant affichera tous les nombres de 0 à 20 sauf 10 :
for( int i = 0; i &lt; 21; i++ ) {
if( i == 10 ) {
continue;
}
cout &lt;&lt; i &lt;&lt; &quot; &quot;;
}</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-05T08:33:23-07:00</dc:date>
<title>Ключевые слова C++</title>
<description>Ниже приведен список ключевых слов C++. Так как эти слова используются языком,
нельзя использовать их в качестве имен переменных, функций или переопределять.</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-05T00:57:10-07:00</dc:date>
<dc:creator>Massimo Manghi</dc:creator>
<title>close - creata</title>
<description>close
Sintassi:
#include &lt;fstream&gt;
void fstream::close();
La funzione close() chiude uno stream.
Argomenti correlati: I/O Constructors, open</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T22:59:09-07:00</dc:date>
<title>at</title>
<description>at
Синтаксис:
#include &lt;vector&gt;
TYPE&amp; at( size_type loc );
const TYPE&amp; at( size_type loc ) const;
Функция at() возвращает ссылку на элемент под номером loc текущего вектора.
Функция at() безопаснее оператора [] , так как она не позволит
ссылаться на элементы за пределами вектора.</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T18:35:01-07:00</dc:date>
<dc:creator>Shaform</dc:creator>
<title>常見問答集 - created</title>
<description>常見問答集
Can I get a copy of this site?
Here is an archived version of the site, updated daily.
Alternatively, a fully indexed and full-text searchable Windows HTML help (.chm) version of this site's Wiki content (as of February 2009) is also available. It works on many Windows versions, including the most recent ones, without the need for additional software. Since this help file is indexed it can be used in a wide range of Integrated Development Environments (IDE) that support .chm files, e.g…</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T18:16:47-07:00</dc:date>
<title>fwrite - creata</title>
<description>fwrite
Sintassi:
#include &lt;cstdio&gt;
int fwrite( const void *buffer, size_t size, size_t count, FILE *stream );
La funzione fwrite() scrive su stream count oggetti ciascuno di dimensione size, il primo oggetto è individuato dal puntatore buffer. Ritorna il numero di oggetti scritti.</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T17:50:49-07:00</dc:date>
<dc:creator>Shaform</dc:creator>
<title>C++ Reference - created</title>
<description>C++ Reference
General Topics
* FAQ
* Pre-processor commands
* Operator Precedence
* Escape Sequences
* ASCII Chart
* Data Types
* Keywords
* Header Files
Standard C Library
* 概觀
* Standard C I/O
* Standard C String &amp; Character
* Standard C Math
* Standard C Time &amp; Date
* Standard C Memory
* Other standard C functions</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T16:21:57-07:00</dc:date>
<title>Multiset Operators</title>
<description>Multiset Operators
Syntax:
#include &lt;set&gt;
multiset&amp; operator=(const multiset&amp; c2);
bool operator==(const multiset&amp; c1, const multiset&amp; c2);
bool operator!=(const multiset&amp; c1, const multiset&amp; c2);
bool operator&lt;(const multiset&amp; c1, const multiset&amp; c2);
bool operator&gt;(const multiset&amp; c1, const multiset&amp; c2);
bool operator&lt;=(const multiset&amp; c1, const multiset&amp; c2);
bool operator&gt;=(const multiset&amp; c1, const multiset&amp; c2);</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T08:59:03-07:00</dc:date>
<title>swap - Tradotto in italiano del testo inglese</title>
<description>swap
Sintassi:
#include &lt;vector&gt;
void swap( container&amp; from );
La funzione swap() cambia gli elementi del vettore corrente con quelli contenuti
nel container from. Questa funzione opera in tempo costante
Nell'esempio che segue la funzione swap() viene usata per scambiare i contenuti
dei due vettori:</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T06:58:07-07:00</dc:date>
<title>es:stl:algorithm:start - creado</title>
<description>Chúpenla! :D
8======D</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T06:56:51-07:00</dc:date>
<title>es:stl:algorithm:next_permutation - creado</title>
<description>Chúpenla! :D
8======D</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T03:14:00-07:00</dc:date>
<dc:creator>Massimo Manghi</dc:creator>
<title>inline</title>
<description>inline
Sintassi:
inline int functionA( int a ) {
...
}
La parola riservata inline richiede al compilatore che il codice di una data funzione
venga sviluppato nel punto dove viene invocata, invece di costruire la chiamata ad essa
con conseguente overhead per la costruzione del frame dei parametri e dello stato
sullo stack. La parola inline è quindi una richiesta, non un comando, e il compilatore
può decidere di ignorarla (e.g. flag di compilazione che ne rendono nullo l'effetto, ot…</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T03:04:46-07:00</dc:date>
<dc:creator>Massimo Manghi</dc:creator>
<title>open</title>
<description>open
Sintassi:
#include &lt;fstream&gt;
void fstream::open(const char *filename, openmode mode = default_mode);
La funzione open() viene usata con stream associati a file. Apre il file filename e lo associa allo stream
corrente. Il parametro mode ha come default ios::in per gli ifstream, ios::out per gli ofstream e
ios::in|ios::out per gli fstream.
Se open fallisce allora lo stream viene messo in uno stato che può essere verificato tramite l'overload dell'operatore
booleano '!'.</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T02:47:26-07:00</dc:date>
<dc:creator>Massimo Manghi</dc:creator>
<title>I/O Constructors</title>
<description>I/O Constructors
Syntax:
#include &lt;fstream&gt;
fstream( const char *filename, ios_base::openmode mode );
ifstream( const char *filename, ios_base::openmode mode );
ofstream( const char *filename, ios_base::openmode mode );
The fstream, ifstream, and ofstream objects are used to do file I/O. The
optional mode defines how the file is to be opened, according to the IO stream
mode flags. The optional filename specifies the file to be opened and
associated with the stream.</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T02:05:14-07:00</dc:date>
<dc:creator>Massimo Manghi</dc:creator>
<title>I/O Constructors - pagina creata</title>
<description>I/O Constructors
Sintassi:
#include &lt;fstream&gt;
fstream( const char *filename, ios_base::openmode mode );
ifstream( const char *filename, ios_base::openmode mode );
ofstream( const char *filename, ios_base::openmode mode );
Gli oggetti di tipo fstream,ifstream e ofstream sono usati per l'I/O su file. L'argomento opzionale mode
definisce come il file deve essere aperto usando i mode flags degli IO stream. Il campo
filename specifica il nome del file che dev'essere aperto e associ…</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-04T01:59:39-07:00</dc:date>
<dc:creator>Massimo Manghi</dc:creator>
<title>C++ I/O</title>
<description>La libreria &lt;iostream&gt; definisce automaticamente alcuni oggetti standard:
* cout, un oggetto di classe ostream che stampa dati sullo standard output.
* cerr, un oggetto di classe ostream che usa lo standard error.
* clog, come cerr, ma è bufferizzato.
* cin, un oggetto di classe istream che legge dati dallo standard input.</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-03T18:55:57-07:00</dc:date>
<title>binary_search</title>
<description>binary_search
Syntax:
#include &lt;algorithm&gt;
bool binary_search( forward_iterator start, forward_iterator end, const TYPE&amp; val );
bool binary_search( forward_iterator start, forward_iterator end, const TYPE&amp; val, Comp f );
The binary_search() function searches from start to end for val. The elements
between start and end that are searched should be in ascending order as defined
by the &lt; operator. Note that a binary search will not work unless the elements
being searched are in order…</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-03T12:31:53-07:00</dc:date>
<dc:creator>Ennius</dc:creator>
<title>Standard Template Library C++ (STL)</title>
<description>Standard Template Library C++ (STL)
La bibliothèque de templates standard C++, généralement appelée STL (Standard Template Library) est un ensemble de classes génériques d'algorithmes. Elle permet aux programmeurs d'implémenter facilement des structures de données classiques telles que les liste, files ou piles.</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-03T11:50:21-07:00</dc:date>
<title>cn:c:date:time - created</title>
<description>time
语法:
#include &lt;ctime&gt;
time_t time( time_t *time );
函数 time() 返回当前时间 (秒数),返回-1表示出错。 如果指定参数,则存储到参数中。
相关文章: asctime, clock, ctime, difftime, gmtime, localtime, mktime, srand, strftime</description>
</item>
<dc:format>text/html</dc:format>
<dc:date>2010-05-02T14:55:31-07:00</dc:date>
<title>C++ Iterators - add tags</title>
<description>C++ Iterators
Iterators are used to access elements of a sequence, and can be used
in a similar manner to pointers. For example, one might use an iterator to step
through the elements of a vector.
The following code creates and uses an iterator with a vector:</description>
</item>
</rdf:RDF>