header gemacht
This commit is contained in:
parent
f434fb7a3d
commit
88d27a448c
1
8_9_Atomkern/code/Atomkern/Atomkern.cpp
Normal file
1
8_9_Atomkern/code/Atomkern/Atomkern.cpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "Atomkern.h"
|
||||||
28
8_9_Atomkern/code/Atomkern/Atomkern.h
Normal file
28
8_9_Atomkern/code/Atomkern/Atomkern.h
Normal 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);
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user