Files
Empirical/Element.h

24 lines
449 B
C++

//
// Created by alex on 11/1/23.
//
#include <iostream>
#include <map>
#include <cmath>
#ifndef EMPIRICAL_ELEMENT_H
#define EMPIRICAL_ELEMENT_H
using namespace std;
class Element {
private:
static const map<string, double> weights;
public:
static double getWeight(const string& name);
//Return a string representation of empirical formula
static string find_empirical(map<string, double> elms);
};
#endif //EMPIRICAL_ELEMENT_H