我收到一个错误,我完全不知道为什么..我已经搜索过这个网站,但找不到任何东西......
我的错误是:`LNK2019: 函数“public: __thiscall sale::sale(int,int,int ,类代理,类活动)"
这是我的代码:
#include "stdafx.h";
#include <iostream>
#include "campaign.h";
//constructor
campaign::campaign()
{
campaign_name = "Campaign Undefined";
campaign_id = -1;
campaign_data_type = 0;
campaign_region_type = 0;
}
/////////////////////////////
//Accessor Functions //
///////////////////////////
std::string campaign::getName()
{
return campaign_name;
}
int campaign::getCampID()
{
return campaign_id;
}
int campaign::getDataType()
{
return campaign_data_type;
}
int campaign::getRegionType()
{
return campaign_region_type;
}
/////////////////////////////
//Mutator Functions //
///////////////////////////
void campaign::setName(std::string newName)
{
campaign_name = newName;
}
void campaign::setCampID(int newCampID)
{
campaign_id = newCampID;
}
void campaign::setDataType(int newDType)
{
campaign_data_type = newDType;
}
void campaign::setRegionType(int newRType)
{
campaign_region_type = newRType;
}
很抱歉这篇超长的帖子,如果有人在这里有大约 15 分钟并且无事可做,如果你能筛选我的代码并给我一个关于我做错了什么的线索,我将不胜感激。谢谢 :)