abcdef

郁闷的一个指针误用

typedef _StructTest{

    ....

}StructTest, *PStructTest;

 

PStructTest pStruct = new StructTest

reinterpret_cast<const char*>(&pStruct)    // ---   额额额额额

 

已经是一级指针了, 被本挫人引用成二级指针然后再转成一级指针来用, 结果很悲剧, 查了大半天............

 

 

wwwwwwwwwwwwwwwwwwwww

posted @ 2013-01-30 10:20  jianc  阅读(170)  评论(0编辑  收藏  举报