29 lines
716 B
C++
29 lines
716 B
C++
#pragma once
|
|
#include <ostream>
|
|
#include <string.h>
|
|
#include <string>
|
|
|
|
class Atomkern {
|
|
private:
|
|
unsigned int ordnungs_zahl;
|
|
unsigned int massen_zahl;
|
|
std::string elementsymbol;
|
|
|
|
public:
|
|
static Atomkern NEUTRON;
|
|
static Atomkern PROTON;
|
|
Atomkern();
|
|
Atomkern(std::string symbol, int masseZ, int ordnungZ);
|
|
std::string symbol();
|
|
unsigned int ordnungszahl();
|
|
unsigned int massenzahl();
|
|
Atomkern operator+(Atomkern atom2);
|
|
Atomkern operator+=(Atomkern atom2);
|
|
Atomkern operator-(Atomkern atom2);
|
|
Atomkern operator-=(Atomkern atom2);
|
|
Atomkern operator*(int skalar);
|
|
Atomkern operator==(Atomkern atom2);
|
|
bool operator==(bool, Atomkern atom);
|
|
std::ostream operator<<(Atomkern atom);
|
|
};
|