Yardım dracarys meydan okuma build sorunu

Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

batuan

Üye
Üye
Mesaj
74
Çözümler
1
Beğeni
8
Puan
434
Ticaret Puanı
0
Build alırken şu şekilde hata alıyorum , düzeltmek için neleri değiştirmem lazım ?
1711054595702.png
 
You have duplicated declaration for int CHARACTER::GetProtectTime and int CHARACTER::SetProtectTime.. keep only one of these..
 
C++:
char.cpp

void CHARACTER::SetProtectTime(const std::string& flagname, int value)
{
    itertype(m_protection_Time) it = m_protection_Time.find(flagname);
    if (it != m_protection_Time.end())
    {
        it->second = value;
    }
    else
    {
        m_protection_Time.insert(make_pair(flagname, value));
    }
}
int CHARACTER::GetProtectTime(const std::string& flagname) const
{
    itertype(m_protection_Time) it = m_protection_Time.find(flagname);
    if (it != m_protection_Time.end())
    {
        return it->second;
    }
    return 0;
}

char.h

public:
    void    SetProtectTime(const std::string& flagname, int value);
    int        GetProtectTime(const std::string& flagname) const;
 
Geri
Üst