From 24bdf39e6c21ab846f6c86803761d78a094e05c0 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 26 May 2022 20:31:26 +0300 Subject: Added files from project 1 (mirror) --- .../Project 1/docs/html/Date_8h.html | 173 +++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 Year 1/Object-oriented Programming/Project 1/docs/html/Date_8h.html (limited to 'Year 1/Object-oriented Programming/Project 1/docs/html/Date_8h.html') diff --git a/Year 1/Object-oriented Programming/Project 1/docs/html/Date_8h.html b/Year 1/Object-oriented Programming/Project 1/docs/html/Date_8h.html new file mode 100644 index 0000000..3dfea47 --- /dev/null +++ b/Year 1/Object-oriented Programming/Project 1/docs/html/Date_8h.html @@ -0,0 +1,173 @@ + + + + + + + +FMI Ticket System: src/Generic/Date/Date.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
FMI Ticket System +
+
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+ +
Date.h File Reference
+
+
+ +

Stores the declaration of class Date. +More...

+
#include <istream>
+#include <ostream>
+#include "../String/String.h"
+
+

Go to the source code of this file.

+ + + + + +

+Classes

class  Date
 Stores a day, month and year. More...
 
+ + + + + + + +

+Functions

std::istream & operator>> (std::istream &istr, Date &dt)
 Reads date from stream with >> operator. More...
 
std::ostream & operator<< (std::ostream &ostr, const Date &dt)
 Writes date to stream with << operator. More...
 
+

Detailed Description

+

Stores the declaration of class Date.

+

Function Documentation

+ +

◆ operator<<()

+ +
+
+ + + + + + + + + + + + + + + + + + +
std::ostream & operator<< (std::ostream & ostr,
const Date & dt 
)
+
+ +

Writes date to stream with << operator.

+

Uses the stream's << operator to write the date in the format "day.month.year"

+
Note
Best used with std::cout or text std::ofstream
+ +
+
+ +

◆ operator>>()

+ +
+
+ + + + + + + + + + + + + + + + + + +
std::istream & operator>> (std::istream & istr,
Date & dt 
)
+
+ +

Reads date from stream with >> operator.

+

Uses the stream's >> operator to read and parse the day, month and year.

+
Note
Best used with std::cin or text std::ifstream
+ +
+
+
+ + + + -- cgit v1.3.1-23-gd82d