consolidate all repos to one for archive

This commit is contained in:
2025-01-28 13:46:42 +01:00
commit a6610fbc7a
5350 changed files with 2705721 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
//
// Created by Nik on 20/05/2022.
//
#ifndef NALOGA1101_STUDENT_H
#define NALOGA1101_STUDENT_H
#include <vector>
#include <memory>
#include "Address.h"
#include "Date.h"
class Student {
private:
unsigned int id;
std::string name, surname;
Date dateOfBirth;
Address address;
public:
Student(unsigned int, std::string, std::string, Date, Address);
std::string toString() const;
static std::vector<std::shared_ptr<Student>> LoadFromFile(const std::string &filename);
static void SaveToFile(const std::vector<std::shared_ptr<Student>> &students, const std::string &fileName);
};
#endif //NALOGA1101_STUDENT_H