摘要: 指针就是变量的地址。引用就是变量的别名。 1 #include <stdio.h> 2 3 //reference is nickname of the variable. 4 //pointer is address of variable. 5 int _tmain(int argc, _TCHAR* argv[]) 6 { 7 int x = 1000; 8 int * pointer = &x; 9 int & reference = x;10 //11 printf("-----------------values---------------- 阅读全文
posted @ 2011-03-03 15:53 香山飘雪 阅读(553) 评论(0) 推荐(0)