diff options
Add Struct tasks.
1 files changed, 17 insertions, 0 deletions
| -rw-r--r-- | pract_SI/Pract. 10/task1/Student.h | 17 |
diff --git a/pract_SI/Pract. 10/task1/Student.h b/pract_SI/Pract. 10/task1/Student.h new file mode 100644 index 0000000..11da143 --- /dev/null +++ b/pract_SI/Pract. 10/task1/Student.h @@ -0,0 +1,17 @@ +#pragma once +#include <string> + +struct Student +{ + //variable Student + std::string name; + std::string adress; + unsigned year; + float GradeFirstTerm, GradeSecondTerm; + + float calculateFinalGrade(); //среден успех за годината. + + bool checkBirthdate(unsigned _year); // роден преди определена година. + + void enterData(); +};
\ No newline at end of file |
