consolidate all repos to one for archive
This commit is contained in:
24
semester_2/programiranje_2/naloga1101/Date.h
Normal file
24
semester_2/programiranje_2/naloga1101/Date.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef NALOGA0201_DATE_H
|
||||
#define NALOGA0201_DATE_H
|
||||
|
||||
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
#include "UnparseableDateException.h"
|
||||
#include "InvalidDateException.h"
|
||||
|
||||
class Date {
|
||||
private:
|
||||
unsigned int day, month, year;
|
||||
public:
|
||||
Date() = default;
|
||||
|
||||
Date(unsigned int day, unsigned int month, unsigned int year);
|
||||
|
||||
std::string toString() const;
|
||||
|
||||
static Date getDateFromString(std::string date);
|
||||
};
|
||||
|
||||
#endif //NALOGA0201_DATE_H
|
||||
Reference in New Issue
Block a user