(Click here for a personal note from Marshall Cline.)
C++ FAQ
/
Section 4
/ FAQ 4.37
Section 4:
4.1
Updates for the 03/12 release?
New!
4.2
Updates for the 11/11 release?
New!
4.3
Updates for the 07/11 release?
4.4
Updates for the 05/11 release?
4.5
Updates for the 03/11 release?
4.6
Updates for the 08/10 release?
4.7
Updates for the 06/10 release?
4.8
Updates for the 05/10 release?
4.9
Updates for the 04/10 release?
4.10
Updates for the 03/10 release?
4.11
Updates for the 01/10 release?
4.12
Updates for the 09/09 release?
4.13
Updates for the 06/09 release?
4.14
Updates for the 01/09 release?
4.15
Updates for the 03/07 release?
4.16
Updates for the 09/06 release?
4.17
Updates for the 03/06 release?
4.18
Updates for the 10/05 release?
4.19
Updates for the 07/05 release?
4.20
Updates for the 06/05 release?
4.21
Updates for the 05/05 release?
4.22
Updates for the 04/05 release?
4.23
Updates for the 03/05 release?
4.24
Updates for the 02/05 release?
4.25
Updates for the 12/04 release?
4.26
Updates for the 06/04 release?
4.27
Updates for the 08/03 release?
4.28
Updates for the 06/03 release?
4.29
Updates for the 05/03 release?
4.30
Updates for the 04/03 release?
4.31
Updates for the 03/03 release?
4.32
Updates for the 02/03 release?
4.33
Updates for the 01/03 release?
4.34
Updates for the 12/02 release?
4.35
Updates for the 09/02 release?
4.36
Updates for the 06/02 release?
4.37
Updates for the 05/02 release?
4.38
Updates for the 04/02 release?
4.39
Updates for the 03/02 release?
4.40
Updates for the 08/01 release?
4.41
Updates for the 04/01 release?
4.42
Updates for the 07/00 release?
4.43
Updates for the 03/00 release?
4.44
Updates for the 01/00 release?
4.45
Updates for the 10/99 release?
4.46
Updates for the 07/99 release?
4.47
Updates for the 06/98 release?
4.48
Updates for the 05/98 release?
4.49
Updates for the 09/97 release?
4.50
Updates for the 01/97 release?
4.51
Updates for the 11/96 release?
4.52
Updates for the 10/96 release?
4.53
Updates for the 09/96 release?
4.54
Updates for the 08/96 release?
4.55
Updates for the 07/96 release?
4.56
Updates for the 06/96 release?
4.57
Updates for the 05/96 release?
4.58
Updates for the 04/96 release?
4.59
Updates for the 03/96 release?
4.60
Updates for the 09/95 release?
4.61
Updates for the 06/95 release?
4.62
Updates for the 04/95 release?
4.63
Updates for the 03/95 release?
4.64
Updates for the 01/95 release?
4.65
Updates for the 12/94 release?
4.66
Updates for the 11/94 release?
4.67
Updates for the 08/94 release?
4.68
Updates for the 08/94 release?
[4.37] What updates were made for the 05/02 release?
Big-picture changes:
Added a new section on
built-in / intrinsic / primitive data types
.
Updated the link to
the Portuguese translation
.
16 New FAQs:
[4.37] What updates were made for the 05/02 release?
(created)
[5.6] Wait a minute, does that previous FAQ say to
not
answer their question just because it's already answered in the FAQ?!?
(created)
[15.17] How can I tell {if a key, which key} was pressed before the user presses the ENTER key?
(inspired by a posting by
Alan Didey
)
[15.18] How can I make it so keys pressed by users are not echoed on the screen?
(created)
[15.19] How can I move the cursor around on the screen?
(created)
[26.1] Can
sizeof(char)
be 2 on some machines? For example, what about double-byte characters?
(inspired by
Randy Sherman
)
[26.2] What are the units of
sizeof
?
(inspired by
Randy Sherman
)
[26.3] Whoa, but what about machines or compilers that support multibyte characters. Are you saying that a "character" and a
char
might be different?!?
(inspired by
Randy Sherman
)
[26.4] But, but, but what about machines where a
char
has more than 8 bits? Surely you're not saying a C++ byte might have more than 8 bits, are you?!?
(created thanks to
Randy Sherman
)
[26.5] Okay, I could imagine a machine with 9-bit bytes. But surely not 16-bit bytes or 32-bit bytes, right?
(created thanks to
Randy Sherman
)
[26.6] I'm sooooo confused. Would you please go over the rules about bytes,
char
s, and characters one more time?
(created thanks to
Randy Sherman
)
[26.7] What is a "POD type"?
(created)
[26.8] When initializing non-static data members of built-in / intrinsic / primitive types, should I use the "initialization list" or assignment?
(created)
[26.9] When initializing static data members of built-in / intrinsic / primitive types, should I worry about the "
static
initialization order fiasco"?
(created)
[26.10] Can I define an operator overload that works with built-in / intrinsic / primitive types?
(created)
[26.11] When I
delete
an array of some built-in / intrinsic / primitive type, why can't I just say
delete a
instead of
delete[] a
?
(created)
5 Changed FAQs:
[6.14] What are some "interview questions" I could ask that would let me know if candidates really know their stuff?
(rewrote from scratch thanks to
Robin
)
[7.6] How can I prevent other programmers from violating encapsulation by seeing the
private
parts of my class?
(minor rewording)
[11.14] Is there a way to force
new
to allocate memory from a specific memory area?
(two typos ("myPool" vs. "pool") in the code were fixed thanks to
Randy Sherman
)
[32.3] How can I include a non-system C header file in my C++ code?
(fixed a grammatical error in the first paragraph thanks to
Randy Sherman
)
[38.13] Is it possible to convert C++ to C?
(added a URL for
Cfront
and reworded the third bullet thanks to
Richard T. Guy
)