fork(1) download
  1. //#include "stdafx.h" //precompiled headers are bad
  2. #include <unordered_map>
  3. #include <string>
  4. #include <utility>
  5.  
  6. using namespace std; //evil
  7. typedef pair<double, double> stats; //prefer "using stats = std::pair<double, double>;"
  8.  
  9. class BuildInfo
  10. {
  11. private:
  12. unordered_map<string, string> info;
  13. const double BUILD_GROWTH = 1.15;
  14.  
  15. public:
  16. BuildInfo() : info ({{"Cursor", "test"}, {"Grandma", "test"},
  17. {"Farm", "test"}, {"Factory", "test"}})
  18. {
  19. }
  20. };
  21.  
  22. int main()
  23. {
  24. BuildInfo bi;
  25. }
  26.  
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
Standard output is empty