吾生也有涯 而知也无涯
//......
void *f;
int i=1,*p;
f=&i;
p=(int*)f;
f=p;
cout<<"p is "<<p<<*p;
cout<<"f is "<<f<<*f; // void 的值不能显示,故编译报错
Powered by: 博客园 Copyright © 2024 流云 Powered by .NET 9.0 on Kubernetes