#pragma once #include #include #include #include #include #include #include using namespace std; class Item { public: Item(long long int studentNo, double inscore[]); Item(ifstream& csv, int stuNoColumn, int scoreColumn[]); Item(); bool operator>(const Item& i) const; bool operator<(const Item& i) const; long long int getStuNo() const; bool stuNoEqual(const Item& i) const; static void dspHeader(); static void dspHeader(int w); void dsp() const; void dsp(int w) const; static void toCsvHeader(ofstream& csv); void toCsv(ofstream& csv) const; virtual ~Item() {} private: long long int studentNo; double score[9]; double sum; };