摘要:
#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 阅读全文