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/05/12 12:37:34

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
_Myptr是个啥类型啊?
左边的it迭代器是个指针,要想访问你vector里的VerNode对象,要解引用这样:(*it)._Myptr.
不过正行代码对不对还是得看你这个_Myptr是啥类型,要是VerNode*指针变量就么问题.