由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] pointer in C
相关主题
[合集] C help(urgent)!!! thanks a lot!!about STL functor and function pointers
不如各位高手挑个专题讲讲C++11吧what's the purpose of pointer to pointers?
Why do I need to use "plain" pointer?C++ Q05: pointer to constant variable
一个简单的小问题find start point of loop from linked list
请问可以这样定义struct吗?C++ Q93 - Q95 (转载)
how to do it ?=======Problem – coding in c++c++ pointers are iterators, why?
is smart_ptr really that good?int F::*x = &F::x是什么意思?
pointer overflowc++ 里用到pointer 的地方我们尽可能用smart pointer吗?
相关话题的讨论汇总
话题: pointer话题: int话题: aug话题: thu话题: thrust
进入Programming版参与讨论
1 (共1页)
b***y
发帖数: 2799
1
☆─────────────────────────────────────☆
yunhai (飞纵千里山) 于 (Thu Aug 25 13:42:40 2005) 提到:
int (*p)[2]
int a[2]
p: a pointer which point to an int array which has size of 2
// Is this crrect?
usage:
int (*p)[2];
int a[2] = {3,4};
p = a; // error
p = &a; // right
who can explain them?
☆─────────────────────────────────────☆
thrust (Thrust Jaeina) 于 (Thu Aug 25 13:46:15 2005) 提到:
anything special? to compare with simple pointers, look at this
int *p, a; /* p is pointer to int */
p=&a; /* c
1 (共1页)
进入Programming版参与讨论
相关主题
c++ 里用到pointer 的地方我们尽可能用smart pointer吗?请问可以这样定义struct吗?
Go adopts JavaScript’s idea of semicolon insertion how to do it ?=======Problem – coding in c++
[合集] C里面return 1代表失败,return 0代表成功,对么?is smart_ptr really that good?
[合集] simple questionpointer overflow
[合集] C help(urgent)!!! thanks a lot!!about STL functor and function pointers
不如各位高手挑个专题讲讲C++11吧what's the purpose of pointer to pointers?
Why do I need to use "plain" pointer?C++ Q05: pointer to constant variable
一个简单的小问题find start point of loop from linked list
相关话题的讨论汇总
话题: pointer话题: int话题: aug话题: thu话题: thrust