-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.cpp
More file actions
51 lines (46 loc) · 764 Bytes
/
Copy pathuser.cpp
File metadata and controls
51 lines (46 loc) · 764 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
#include "user.h"
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
using namespace std;
// default constructor
user::user()
{
user_id = "";
user_password = "";
reg_date = "";
}
// parametrized constructor
user::user(string id, string password, string date)
{
user_id = id;
user_password = password;
date = reg_date;
}
// setters
void user::setuserid(string id)
{
user_id = id;
}
void user::setpassword(string password)
{
user_password = password;
}
void user::setdate(string date)
{
reg_date = date;
}
// getters
string user::getid() const
{
return user_id;
}
string user::getpassword() const
{
return user_password;
}
string user::getdate() const
{
return reg_date;
}