class PACKET
{
friend QTextStream& operator << ( QTextStream& os,const PACKET *&p)
{
//os<<"maping"<<"ok"<<endl;
os<< "src"<<p->src
<<"dst"<<p->dst
<<"timestamp"<<p->timestamp
<<"hop:"<<p->hop
<<"length"<<p->length
<<"next"<<p->next<<endl;
return os;
}
^^^^
^^^^
^^^^
^^^^
}
用cout<<输出,为什么总是得到地址:0x81a3f90
而不是想要的输出数据呢?????????
[ 此贴被XChinux在2006-06-20 19:13重新编辑 ]