Sorting a vector of objects in C++

后端 未结 8 1255
慢半拍i
慢半拍i 2021-01-28 13:26
struct Keyword
{
    std::string keyword;
    int numUses;
};  

bool sortingVector(const Keyword& key1, const Keyword& key2)
{
    return key1.numUses < key2         


        
相关标签:
8条回答
  • 2021-01-28 13:49

    You have multiple sortingVector functions - thus the <unresolved overloaded function type> part of your error.

    0 讨论(0)
  • 2021-01-28 13:55

    I believe right example here -> Sorting a vector of custom objects

    0 讨论(0)
提交回复
热议问题