#ifndef KNAPSACK_HPP #define KNAPSACK_HPP #include namespace knapsack { void CheckArgumentAmount(int argc); struct PossibleObject { PossibleObject(int inputWeight, int inputValue, int i); int itemNumber; int weight; int value; }; bool SortByItemNumber(PossibleObject* lhs, PossibleObject* rhs); class User { public: void ReadNewFile(const char* inputFilePath); void InputSafety(void); void RunKnapsack(void); void PrintResult(void); int GetSolutionValue(void); void _TestFileReadIn(std::vector testChoices); void _TestKnapsack(void); private: std::vector choices; std::vector solution; int limit; int itemCount; }; } #endif