Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 09 / task1 (not finished) / Grade.h
blob: d0cb2e74c81a5cc5839e807d258e53fd20d27481 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <iostream>

class Grade
{
	size_t gradeValue;
	char* taskName;

	void free();
	void copyFrom(const Grade& other);
public:
	Grade();

	Grade(const char* taskName, size_t gradeValue);

	Grade(const Grade& other);
	Grade& operator=(const Grade& other);
	~Grade();

	const char* getTaskName() const;
	size_t getGrade() const;

	void setTaskName(const char* name);
	void setGrade(size_t grade);
};