GildedRose-Refactoring-Kata/cpp/src/GildedRose.h
tbeu 73a51ef14f Fix C++ code smells
* Move "using namespace std;" from header to module file (to no longer pollute the global namespace).
* Fix inconsistency of having namespace prefix in test code.
* Add include guard to GildedRose.h.
* Avoid std::endl.
* Have consistent white-space.
2025-02-12 20:56:22 +01:00

24 lines
373 B
C++

#pragma once
#include <string>
#include <vector>
class Item
{
public:
std::string name;
int sellIn;
int quality;
Item(std::string name, int sellIn, int quality) : name(name), sellIn(sellIn), quality(quality)
{}
};
class GildedRose
{
public:
std::vector<Item> & items;
GildedRose(std::vector<Item> & items);
void updateQuality();
};