何时应 static_cast、 dynamic_cast、 const_cast 和 reinterpret_cast 使用?

When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?

c++ pointers casting c++-faq
提问时间: 2008-12-01 20:11:07

Regular cast vs. static_cast vs. dynamic_cast

Regular cast vs. static_cast vs. dynamic_cast [duplicate]

c++ pointers casting
提问时间: 2008-08-26 13:20:55

为什么应该使用一个指针,而不是对象本身?

Why should I use a pointer rather than the object itself?

c++ pointers c++11
提问时间: 2014-03-03 11:54:16

什么是智能指针,以及何时应使用?

What is a smart pointer and when should I use one?

c++ pointers c++11 smart-pointers c++-faq
提问时间: 2008-09-20 00:09:24

Const int *,之间的区别是什么 const int * 常量,以及常量整型 *?

What is the difference between const int*, const int * const, and int const *?

c++ c pointers const c++-faq
提问时间: 2009-07-17 13:28:09

为了解指针和可以做什么来克服这些障碍有哪些?[关闭]

What are the barriers to understanding pointers and what can be done to overcome them? [closed]

c++ c pointers
提问时间: 2008-09-20 15:00:47

到底什么是 nullptr?

What exactly is nullptr?

c++ pointers c++11 nullptr
提问时间: 2009-08-15 16:47:32

如何在 c + + 中使用阵列?

How do I use arrays in C++?

c++ arrays pointers multidimensional-array c++-faq
提问时间: 2011-01-26 22:14:35

我们可以有多少个层次的指针?

How many levels of pointers can we have?

c++ c pointers
提问时间: 2012-04-10 10:34:17

何时使用引用和指针

When to use References vs. Pointers

c++ pointers reference
提问时间: 2011-08-14 17:08:30

可以安全地删除一个 NULL 指针吗?

Is it safe to delete a NULL pointer?

c++ pointers memory-management null-pointer delete-operator
提问时间: 2010-11-16 02:33:27

指针和引用

Pointer vs. Reference

c++ variables pointers reference
提问时间: 2008-09-22 10:38:32

如何将对象传递给 c + + 中的函数?

How to pass objects to functions in C++?

c++ pointers pass-by-reference pass-by-value c++-faq
提问时间: 2010-01-26 12:08:07

哪种类型的指针使用时?

Which kind of pointer do I use when?

c++ pointers c++11 smart-pointers c++-faq
提问时间: 2012-01-02 22:58:38

Sizeof (一些指针) 始终是等于四个?

Is the sizeof(some pointer) always equal to four?

c++ c pointers memory sizeof
提问时间: 2008-12-29 23:03:23

什么是数组衰减?

What is array decaying?

c++ c arrays pointers
提问时间: 2009-09-22 17:24:43

什么时候应该使用 new 关键字在 c + +?

When should I use the new keyword in C++?

c++ pointers reference new-operator keyword
提问时间: 2009-03-17 16:44:56

将二维数组传递给 c + + 函数

Passing a 2D array to a C++ function

c++ arrays pointers multidimensional-array
提问时间: 2012-01-07 03:40:31

NULL,之间的区别是什么 '' 和 0

What is the difference between NULL, '

c++ c pointers "null"
提问时间: 2009-08-18 22:09:59

为什么做 c + + 库和框架使用智能指针?

Why do C++ libraries and frameworks never use smart pointers?

c++ api pointers smart-pointers
提问时间: 2012-04-26 13:31:10

为什么是 [0] x ! = [0] [0] x ! = x [0] [0] [0]?

Why is x[0] != x[0][0] != x[0][0][0]?

c++ c arrays pointers
提问时间: 2015-07-05 14:28:41

从兼容指针类型的 android: JNI 函数指针初始化

Android: JNI function pointer initialization from incompatible pointer type

android c pointers
提问时间: 2014-12-31 00:00:00

是否可以使用指针指向成员获取实际的指针?

Is it possible to use a pointer-to-member to get an actual pointer?

c++ pointers pointer-to-member
提问时间: 2014-12-31 00:00:00

分配的内存通过双指针的强制转换

Casting allocated memory through double pointer

c pointers casting
提问时间: 2014-12-31 00:00:00

如何传递函数作为参数传入 C?

How do you pass a function as a parameter in C?

c function pointers syntax parameters
提问时间: 2008-08-13 02:16:32

对于 C 数组,为什么是这种情况,[5] = = 5 [a]?

With C arrays, why is it the case that a[5] == 5[a]?

c arrays pointers pointer-arithmetic
提问时间: 2008-12-19 17:01:33

C 指针数组/数组的指针消除歧义

C pointer to array/array of pointers disambiguation

c arrays pointers variable-declaration
提问时间: 2009-05-13 18:35:12

"取消"指针平均做什么?

What does “dereferencing” a pointer mean?

c pointers dereference
提问时间: 2011-02-10 09:16:22

如何免费知道多少要自由?

How does free know how much to free?

c size pointers free
提问时间: 2009-10-05 07:45:31

在 c + + 指针变量和引用变量之间的区别是什么?

What are the differences between a pointer variable and a reference variable in C++?

c++ pointers reference c++-faq
提问时间: 2008-09-11 20:03:57