C / C++

From miki
Revision as of 12:13, 11 August 2010 by Mip (talk | contribs) (Created page with '== C == === References === * Manual pages <tt>manpages-dev</tt>, <tt>manpages-posix-dev</tt> <source lang="bash">sudo apt-get install manpages-dev manpages-posix-dev</source> ==…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

C

References

  • Manual pages manpages-dev, manpages-posix-dev
sudo apt-get install manpages-dev manpages-posix-dev

C++

References

Reference for standard C
# Use ***HTTrack*** to make a local copy of the website - use option -P http://proxy:port if needed
httrack http://www.cplusplus.com/ -W -O /var/www -%v "-www.cplusplus.com/forum/*" "-www.cplusplus.com/src/*" "-www.cplusplus.com/member/*"
sudo apt-get install stl-manual
ln -s /usr/share/doc/stl-manual/html /var/www/sgi        # Now the manual is available at http://localhost/sgi

<iostream.h> or <iostream>

  • <iostream> is the standard compliant library. <iostream.h> is deprecated since many many years.
  • <iostream> contains a set of templatized I/O classes which support both narrow and wide characters (by contrast, <iostream.h> 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 <iostream> differ from <iostream.h>.
  • Finally, <iostream> components are declared in namespace std whereas <iostream.h> components are declared in the global scope.

Note that both libraries cannot be mixed in one program.