From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- Bachelor/Prog2/Codebeispiele/Student/Student.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Bachelor/Prog2/Codebeispiele/Student/Student.h (limited to 'Bachelor/Prog2/Codebeispiele/Student/Student.h') diff --git a/Bachelor/Prog2/Codebeispiele/Student/Student.h b/Bachelor/Prog2/Codebeispiele/Student/Student.h new file mode 100644 index 0000000..3bcb426 --- /dev/null +++ b/Bachelor/Prog2/Codebeispiele/Student/Student.h @@ -0,0 +1,26 @@ +// Student.h: Interface for class Student. + +#if !defined STUDENT_H +#define STUDENT_H + +#include + +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 -- cgit v1.2.3