fork(1) download
  1. #include <vector>
  2. #include <string>
  3. #include <map>
  4.  
  5. #ifndef VALUE_H_
  6. #define VALUE_H_
  7.  
  8. using namespace std;
  9.  
  10. class Value {
  11. private:
  12. long timestamp;
  13. vector< map <string, double> > value;
  14.  
  15. public:
  16. Value(vector< map <string,double> > value);
  17. virtual ~Value() {}
  18.  
  19. void setValue(map <string,double> value);
  20. vector< map <string,double> > getValue();
  21. };
  22.  
  23. #endif
  24.  
  25. Value::Value(vector< map <string,double> > value) {
  26. this->value = value;
  27. }
  28.  
  29. void Value::setValue(map <string,double> value){
  30. this->value.push_back(value);
  31. //vector<map<>>
  32. }
  33.  
  34. vector< map <string,double> > Value::getValue(){
  35. return value;
  36. }
  37.  
  38. int main() {
  39. // your code goes here
  40. return 0;
  41. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
Standard output is empty