-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGraphProjectNode.cpp
More file actions
69 lines (60 loc) · 1.35 KB
/
GraphProjectNode.cpp
File metadata and controls
69 lines (60 loc) · 1.35 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
#include <iostream>
#include <string>
#include <vector>
using namespace std;
vector<vector<int>> edges;
class Node {
public:
Node();
Node(string name, int id, string dob, string email, string phone);
string getName();
void setName(string name);
int getId();
void setId(int id);
string getDob();
void setDob(string dob);
string getEmail();
void setEmail(string email);
string getPhone();
void setPhone(string phone);
private:
string name;
int id;
string dob;
string email;
string phone;
vector<Node> friendList;
};
Node::Node() {}
Node::Node(string name, int id, string dob, string email, string phone)
{
this->name = name;
this->id = id;
this->dob = dob;
this->email = email;
this->phone = phone;
}
string Node::getName() {return name;}
int Node::getId() {return id;}
string Node::getDob() {return dob;}
string Node::getEmail() {return email;}
string Node::getPhone() {return phone;}
void Node::setName(string name) {
this->name = name;
}
void Node::setId(int id) {
this->id = id;
}
void Node::setDob(string Dob) {
this->dob = dob;
}
void Node::setEmail(string email) {
this->email = email;
}
void Node::setPhone(string phone) {
this->phone = phone;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////
int main()
{
}