「✨」 feat(ex00): bitcoin exchange should work :D
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <map>
|
||||
@@ -21,10 +23,16 @@ public:
|
||||
bool operator<=(const Date &) const;
|
||||
bool operator>=(const Date &) const;
|
||||
|
||||
int getValue(void) const {return _value;}
|
||||
|
||||
private:
|
||||
unsigned long long _value;
|
||||
};
|
||||
|
||||
std::ostream &operator<<(std::ostream &, const Date &);
|
||||
|
||||
|
||||
|
||||
class BitcoinExchange {
|
||||
public:
|
||||
BitcoinExchange(void) {parseData("data.csv");}
|
||||
@@ -32,9 +40,11 @@ public:
|
||||
BitcoinExchange &operator=(const BitcoinExchange &other) {this->_data = other._data; return *this;}
|
||||
~BitcoinExchange(void) {}
|
||||
|
||||
void parseData(const std::string filename);
|
||||
void str(std::string input);
|
||||
|
||||
private:
|
||||
void parseData(const std::string filename);
|
||||
std::map<Date, double> _data;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user