summaryrefslogtreecommitdiffstats
path: root/Bachelor/Prog2/Studenten/Student.h
diff options
context:
space:
mode:
authorSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
committerSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
commit33613a85afc4b1481367fbe92a17ee59c240250b (patch)
tree670b842326116b376b505ec2263878912fca97e2 /Bachelor/Prog2/Studenten/Student.h
downloadStudium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz
Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2
add new repoHEADmaster
Diffstat (limited to 'Bachelor/Prog2/Studenten/Student.h')
-rw-r--r--Bachelor/Prog2/Studenten/Student.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/Bachelor/Prog2/Studenten/Student.h b/Bachelor/Prog2/Studenten/Student.h
new file mode 100644
index 0000000..55d1e85
--- /dev/null
+++ b/Bachelor/Prog2/Studenten/Student.h
@@ -0,0 +1,26 @@
+// Student.h: Interface for class Student.
+
+#if !defined STUDENT_H
+#define STUDENT_H
+
+#include <string>
+
+class Student
+{
+
+public:
+ Student();
+ ~Student();
+ void set( std::string, int, int );
+ void print();
+ std::ostream& write( std::ostream& ) const;
+ std::istream& read( std::istream& );
+
+private:
+ std::string name;
+ int matNr;
+ int age;
+
+};
+
+#endif