From 7104c90385c02473bba9880b0fcd28ffbf1940bc Mon Sep 17 00:00:00 2001 From: Justsvetoslavov Date: Mon, 17 Jan 2022 21:47:35 +0200 Subject: Add Struct tasks. --- pract_SI/Pract. 10/task1/Student.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pract_SI/Pract. 10/task1/Student.h (limited to 'pract_SI/Pract. 10/task1/Student.h') 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 + +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 -- cgit v1.3.1-23-gd82d