- 3
- 0
- 约2.79千字
- 约 14页
- 2018-11-08 发布于河南
- 举报
CHAPTER 5 Input 4. Pointing Devices课件
CHAPTER 5 Input
Pointing Devices
Pointers
A pointer is a variable used to store the address of a memory cell.
We can use the pointer to reference this memory cell
100
…
…
1024
…
Memory address:
1024
1032
…
1020
integer
pointer
Pointer Types
Pointer
C++ has pointer types for each type of object
Pointers to int objects
Pointers to char objects
Pointers to user-defined objects
(e.g., RationalNumber)
Even pointers to pointers
Pointers to pointers to int objects
Pointer Variable
Declaration of Pointer variables
type* pointer_name;
//or
type *pointer_name;
where type is the type
原创力文档

文档评论(0)