This repository was archived by the owner on Jul 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathword.cpp
More file actions
76 lines (59 loc) · 1.36 KB
/
Copy pathword.cpp
File metadata and controls
76 lines (59 loc) · 1.36 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#include "word.h"
word::word()
{
this->name="";
this->translat="";
this->type="";
this->prononciation= "";
}
word::word(QString name, QString translat, QString type){
this->name = name;
this->translat = translat;
this->type = type;
this->prononciation= "";
}
word::word(const word& w){
this->name = w.name;
this->translat = w.translat;
this->type = w.type;
this->prononciation = w.prononciation;
}
word::~word()
{
}
void word::setName(QString name){
this->name = name;
}
void word::setTranslat(QString translate){
this->translat = translate;
}
void word::setPronon(QString prononciation){
this->prononciation = prononciation;
}
QString word::getName(){
return this->name;
}
QString word::getTranslate(){
return this->translat;
}
QString word::getType(){
return this->type;
}
QString word::getPrononciation(){
return this->prononciation;
}
bool word::operator ==(const word& w){
return name == w.name && translat == w.translat && type == w.type && prononciation == w.prononciation;
}
bool word::operator ==(const QString& w){
return (name == w && translat == w && prononciation == w && type == w);
}
bool word::operator !=(const word& w){
return !(*this == w);
}
bool word::operator !=(const QString& w){
return !(*this == w);
}
void word::setType(QString type){
this->type = type;
}