-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfaq.html
More file actions
159 lines (134 loc) · 6.1 KB
/
faq.html
File metadata and controls
159 lines (134 loc) · 6.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<!-- Mirrored from cppreference.com/faq.html by HTTrack Website Copier/3.x [XR&CO'2004], Tue, 22 Jan 2008 06:25:41 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=iso-8859-1"><!-- /Added by HTTrack -->
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org">
<title>Questions?</title>
<link href="cppreference.css" rel="stylesheet" type="text/css">
<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>
</head>
<body onload="prettyPrint()">
<table>
<tr>
<td>
<div class="body-content">
<div class="header-box">
<a href="index-2.html">cppreference.com</a> > FAQ
</div>
<h1>Frequently Asked Questions</h1>
<h3>Can I get a copy of this site?</h3>
<p>We do provide <a href=
"http://www.cppreference.com/cppreference-files.tar.gz">a
downloadable archived version of cppreference.com</a>. If you're
interested in getting archived versions of websites in general, you
might want to check out utilities like <a href=
"http://www.gnu.org/software/wget/wget.html">GNU's wget</a>
(Windows version <a href=
"http://pages.interlog.com/~tcharron/wgetwin.html">here</a>).</p>
<p>In addition, James Heany has compiled a PDF version of the site
(as of October 2007) that is available for download. There is a <a
href="CppReferenceManual.pdf">C++ Reference PDF</a> and a <a
href="Cpp_STL_ReferenceManual.pdf">STL Reference PDF</a> available
for download.</p>
<h3>Can I [mirror/translate/put up my own version of/etc.] this
site?</h3>Sure, that would be great! All that we would ask is that
you include a link back to this site so that people know where to
get the most up-to-date content.
<h3>Who is this site meant for?</h3>There are no "Introduction
to Programming" tutorials here. This site is meant to be used by
more-or-less experienced C++ programmers, who have a good idea of
what they want to do and simply need to look up the syntax. If
you're interested in learning C/C++, try one of these sites:
<ul>
<li><a href="http://www.howstuffworks.com/c.htm">How C Programming
Works</a></li>
<li><a href=
"http://www.its.strath.ac.uk/courses/c/">C Programming</a></li>
<li><a href="http://www.cplusplus.com/doc/tutorial/">C++ Language
Tutorial</a></li>
</ul>
<h3>Does this site contain a complete and definitive list of
everything I can do with C/C++?</h3>Few things in life are
absolute. Many C/C++ compilers have added or missing functionality.
If you don't find what you are looking for here, don't
assume that it doesn't exist. Do a search on <a
href="http://www.google.com/">Google</a> for it.
<h3>Some of the examples on this site don't work on my system.
What's going on?</h3>Most of the code on this site was compiled
under <a href="http://www.linux.com/">Linux</a> (<a href=
"http://www.redhat.com/">Red Hat</a>, <a href=
"http://www.debian.org/">Debian</a>, or <a
href="http://www.ubuntu.com/">Ubuntu</a>) with the <a href=
"http://www.gnu.org/">GNU</a> <a href=
"http://www.gnu.org/software/gcc/gcc.html">Compiler Collection</a>.
Since this site is merely a reference for the <a href=
"http://www.ncits.org/cplusplus.htm"> Standard C and C++
specification</a>, not every compiler will support every function
listed here. For example,
<ul>
<!-- <LI>I've never had much luck getting
<A HREF="cppbitset.html">C++ Bitsets</A>
to work on my computer - but they're listed here. not needed now -->
<li>Header files change like mad. To include the necessary support
for <a href="cppvector/index.html">C++ Vectors</a>, you might have
to use any of these:
<pre class="prettyprint">
#include <vector>
#include <Vector>
#include <vector.h>
</pre>(according to the spec, the first of those should work, and the
compiler should know enough to use it to reference the real vector
header file.)
</li>
<li>Another header file issue is that newer compilers can use a
more platform-independent commands to include standard C libraries.
For example, you should be able to use
<pre class="prettyprint">
#include <cstdio>
</pre>instead of
<pre class="prettyprint">
#include <stdio.h>
</pre>
</li>
<li>All of the code on this site assumes that the correct namespace
has been designated. If your compiler is a little old, then you
might be able to get away with using simple statements like:
<pre class="prettyprint">
cout << "hello world!";
</pre>However, newer compilers require that you either use
<pre class="prettyprint">
std::cout << "hello world!";
</pre>or declare what namespace to use with the "using
namespace" command.
</li>
<li>Certain popular compilers (like the one shipped with
Microsoft's Visual C++) have added alternative or additional
functionality to the C++ Standard Template Library. For example,
the MFC in Visual C++ provides you with the string type
"CString", which has string functionality but is not part
of the C++ STL.</li>
</ul>...The list goes on and on. In other words, individual results
may vary.
<h3>You've got an error in this site.</h3>If you find any errors
in this reference, please feel free to <a href=
"mailto:comments@cppreference.com">contact us</a> -- feedback and
code examples are always welcome.
<h3>What's up with this site?</h3>Think of it as a community
service, for geeks.
</div>
</td>
<script src="../www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2828341-1";
urchinTracker();
</script>
</tr>
</table>
</body>
<!-- Mirrored from cppreference.com/faq.html by HTTrack Website Copier/3.x [XR&CO'2004], Tue, 22 Jan 2008 06:25:41 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=iso-8859-1"><!-- /Added by HTTrack -->
</html>