#include <iostream.h>void *pv; int i;
void main() { i=5;pv=&i; cout<<*(pv)<<endl;//为什么这里有错误??????????} musicml(417111349) 16:15:31帮忙看看谢谢了
是的
#include <iostream>using namespace std;void *pv; int i;
void main() { i=5;pv=&i; cout<<*((int*)pv)<<endl;//??????????????????}