Я только начал изучать классы на C ++, и я получаю эту ошибку для кода ниже: conflicting declaration 'std::string PizzaOrder::toppings_offered'
Может кто-нибудь объяснить, что не так с моим кодом здесь?
class PizzaOrder
{
public:
//all the toppings that are offered, constant array of strings
static string toppings_offered[5];
static double topping_base_cost;
};
string PizzaOrder::toppings_offered = {"onions", "bell peppers", "olives", "spinach", "tomatoes"};
double PizzaOrder::topping_base_cost = 0.50;