摘要: #include "stdio.h"#include "my.h"void Sqrt(int &num){ num*=num;}void main(){ int count=5; const int *p=&count; const int *&r=p; //*r=123; 这一句编译器会报错 printf("%d\n",count);} void*& Fun(){ int t=123; int *p=&t; int *&r=p; return (void*&)r;} 改变书上的例子:// strtref.cpp -- using structure references#include i 阅读全文
posted @ 2010-10-26 23:43 再快一点 阅读(179) 评论(0) 推荐(0) 编辑