-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComic.cpp
More file actions
53 lines (47 loc) · 756 Bytes
/
Comic.cpp
File metadata and controls
53 lines (47 loc) · 756 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include "Comic.h"
void Comic::operator=(const Comic & right)
{
isbn = right.isbn;
title = right.title;
writer = right.writer;
publisher = right.publisher;
genre = right.genre;
artist = right.artist;
publishedDate = right.publishedDate;
}
bool Comic::operator==(const Comic & right)
{
bool flag = false;
if (isbn == right.isbn)
{
flag = true;
}
return flag;
}
bool Comic::operator>(const Comic & right)
{
bool flag = false;
if (isbn>right.isbn)
{
flag = true;
}
return flag;
}
bool Comic::operator<(const Comic & right)
{
bool flag = false;
if (isbn<right.isbn)
{
flag = true;
}
return flag;
}
bool Comic::operator!=(const Comic & right)
{
bool flag = false;
if (isbn != right.isbn)
{
flag = true;
}
return flag;
}