摘要: 数组名和指针数组名不是指针,虽然它们太像了。比如#include <iostream>using namespace std;int main(){ int arr[bufSize]={0, 1, 2, 3, 4}; int *p=arr; cout<<p[0]<<'\t'<<p[1]<<endl;for(size_t idx = 0; idx != bufSize; ++idx)cout<<*(arr+idx)<<'\t'<<endl; for(int *p = a 阅读全文
posted @ 2012-10-29 23:14 hilbertan 阅读(322) 评论(0) 推荐(0) 编辑