Files
School/Anul 1/Semestrul 2/OOP/Labs/MockTest1/QuestionRepo.h
T
2024-08-31 12:07:21 +03:00

18 lines
398 B
C++

#pragma once
#include "vector"
#include "Question.h"
class QuestionRepo
{
private:
std::vector<Question> _questions;
std::string _file_name;
void read_from_file();
void write_to_file();
public:
QuestionRepo(std::string file_name);
~QuestionRepo();
void add(Question q);
std::vector<Question> get_all();
int size();
};