header gemacht

This commit is contained in:
Tobias Kachel 2026-06-09 17:01:56 +02:00
parent f434fb7a3d
commit 88d27a448c
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1 @@
#include "Atomkern.h"

View File

@ -0,0 +1,28 @@
#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);
};