比较字符串 - 输入结构的X向量

时间:2014-03-18 00:42:41

标签: c++

我向你求助。我有输入 - 姓名。现在我需要从具有相同数据的结构矢量中找到人,我无法找到有效的解决方案。

struct person {
    string pName;
    string pSurname;
    int weight;
    int height;
};

int solve(const string & name,const string & surname){
    std::vector<people> persons;
    std::vector<people>:: iterator it;

    return 0;

}

0 个答案:

没有答案
相关问题