C++ cannt distinguish between a pointer-to-a-thing and a pointer-to-an-array
-of-things.
What does it mean?
Any explaination?
Thanks very much!
k****f 发帖数: 3794
2
A* p;
A a, b[10];
p=&a;//pointer to a thing
p=b; //pointer to an array.
你不知道p是指向一个元素,还是一个数组。
array
【在 c***g 的大作中提到】 : C++ cannt distinguish between a pointer-to-a-thing and a pointer-to-an-array : -of-things. : What does it mean? : Any explaination? : Thanks very much!