我确定我的功能,但我不知道这个错误的含义
"non-standard syntax; use '&' to create a pointer to member"
Run Code Online (Sandbox Code Playgroud)
这是我的功能:recherche d'un trajets dans un vector du trajets
int compagnie::rechercher_Trajet(int ind)
{
for (int i = 0; i < tab_Trj.size(); i++)
{
if (tab_Trj[i]->getNum == ind)
return i;
return -1 ;
}
}
class trajets :
int getNum() { return numero; }
};
Run Code Online (Sandbox Code Playgroud)
我求你的帮助,thnx
c++ ×1