C++中地递增递减运算符和指针
生活随笔
收集整理的這篇文章主要介紹了
C++中地递增递减运算符和指针
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
//自增和自減指針double arr[5] = { 21.1,32.8,45.6,58.6,58.6 };double* pt = arr;++pt;cout << "data is:" << *pt << endl;double x = *++pt;//increment the pointer,take the value++* pt;//increment the pointer to the value(*pt)++;//increment pointed-to valuex = *pt++;//dereference original location,the increment pointer
總結
以上是生活随笔為你收集整理的C++中地递增递减运算符和指针的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 幻月大陆辅助多开挂机攻略
- 下一篇: TGit 快速上手