left of '._Myptr' must have class/struct/union typebool Graphic::IsVerInQue(int id){\x05VerNode* pNode;\x05vector::iterator it;\x05for (it = m_aryVerQue_Final.begin(); it = m_aryVerQue_Final.end(); it++)\x05{\x05\x05pNode=(VerNode*)it._Myptr;\x05\x05

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 13:58:32
leftof''._Myptr''musthaveclass/struct/uniontypeboolGraphic::IsVerInQue(intid){\x05VerNode*pNode;\x05ve

left of '._Myptr' must have class/struct/union typebool Graphic::IsVerInQue(int id){\x05VerNode* pNode;\x05vector::iterator it;\x05for (it = m_aryVerQue_Final.begin(); it = m_aryVerQue_Final.end(); it++)\x05{\x05\x05pNode=(VerNode*)it._Myptr;\x05\x05
left of '._Myptr' must have class/struct/union type
bool Graphic::IsVerInQue(int id)
{
\x05VerNode* pNode;
\x05vector::iterator it;
\x05for (it = m_aryVerQue_Final.begin(); it = m_aryVerQue_Final.end(); it++)
\x05{
\x05\x05pNode=(VerNode*)it._Myptr;
\x05\x05if(pNode->m_nID == id)
\x05\x05\x05return true;
\x05}
\x05return false;
}

left of '._Myptr' must have class/struct/union typebool Graphic::IsVerInQue(int id){\x05VerNode* pNode;\x05vector::iterator it;\x05for (it = m_aryVerQue_Final.begin(); it = m_aryVerQue_Final.end(); it++)\x05{\x05\x05pNode=(VerNode*)it._Myptr;\x05\x05
it是vector::iterator类型,这个类型没有_Myptr这个成员.
或许真的有(比如说你通过源代码看到了),但这个不是给你用的.你要拿到vector里面元素的内容,可以直接用it->m_nID,因为iterator类型重载过箭头运算符