3C的基本数据类型.pptVIP

  • 6
  • 0
  • 约9.28千字
  • 约 49页
  • 2017-05-27 发布于重庆
  • 举报
3C的基本数据类型

第3章 C++的基本数据类型 #include iostream.h //例:给出程序的运行结果 void main() { int a; int *aPtr; a = 24; aPtr = a; cout The address of a is aendl; cout The value of aPtr is aPtrendl; coutThe value of a is aendl; cout The value of *aPtr is *aPtr endlendl; cout*aPtr = *aPtrendl; cout *aPtr = *aPtr endl; cout *aPtr = aPtr endl; } The value of a is 24 The value of *aPtr is 24 *aPtr = 0063FE00 *aPtr = 0063FE00 The address of a is 0063FE00 The value of aPtr is 0063FE00 aPtr = 0065FDF4 24 … 0063FE00 … … 0063FE00 aPtr a 0065FDF4 3.4.2 指针运算 除了前面介绍的“”、“*”运算和赋值运算外,指针只能进

文档评论(0)

1亿VIP精品文档

相关文档