C++: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
(Moved to C / C++)
Line 1: Line 1:
#REDIRECT [[C / C++]]
== References ==
* [http://www.acm.uiuc.edu/webmonkeys/book/c_guide/ The C Library Reference Guide]
: Reference for standard C
* [http://www.cplusplus.com/reference/ C++ Reference]
** Also contains description of [http://www.cplusplus.com/reference/clibrary/ C Language Library]
** ... and of [http://www.cplusplus.com/reference/iostream/ IOStream Library]
* [http://www.sgi.com/tech/stl/ Standard Template Library Programmer's Guide from sgi]

== <iostream.h> or <iostream> ==
* <code>&lt;iostream&gt;</code> is the standard compliant library. <code>&lt;iostream.h&gt;</code> is deprecated since many many years.
* <code>&lt;iostream&gt;</code> contains a set of templatized I/O classes which support both ''narrow'' and ''wide'' characters (by contrast, <code>&lt;iostream.h&gt;</code> classes are confined to ''char'' exclusively).
* Third, the C++ standard specification of iostream's interface was changed in many subtle aspects. Consequently, the interfaces and implementation of <code>&lt;iostream&gt;</code> differ from <code>&lt;iostream.h&gt;</code>.
* Finally, <code>&lt;iostream&gt;</code> components are declared in namespace <u><code>std</code></u> whereas <code>&lt;iostream.h&gt;</code> components are declared in the global scope.
Note that both libraries '''cannot''' be mixed in one program.

Revision as of 12:14, 11 August 2010

Redirect to: