小编M.R*_*REB的帖子

非标准语法; 使用'&'创建指向成员的指针

我确定我的功能,但我不知道这个错误的含义

"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
推荐指数
1
解决办法
2万
查看次数

标签 统计

c++ ×1