-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCounterA.h
More file actions
146 lines (129 loc) · 2.3 KB
/
CounterA.h
File metadata and controls
146 lines (129 loc) · 2.3 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#pragma once
#include <string>
#include <iostream>
using namespace std;
//class CounterA
//{
//
//public:
// //Constructor (automatically called when whenever a new object is created,
// //Allowing the class to initialize member variables or allocate storage.
// //the constructor function is declared just like a regular member function
// //but with a name that matches the class name and without any return type, not even void;
// CounterA();
// CounterA(string x, string y, string z) {
// x = strtWork;
// y = endWork;
// z = date;
// }
//
// ~CounterA(); //Deconstructor
// class log {
//
// public:
// log();
// log(string a) {
// a = timeStamp;
// }
//
// class who {
// void setWho(string a, string b, string c, string d, string e) {
// a = id;
// b = course;
// c = name;
// d = probType;
// e = duration;
// }
// private:
// string id, course, name, probType, duration;
// };
//
// private:
// string timeStamp;
// who who;
//
// };
// log log;
//private:
// string strtWork, endWork, date;
//};
class CounterA {
public:
CounterA();
CounterA(string a, string b, string c, string d, string e, string f, string g, string h, string i) {
strtWork = a;
endWork = b;
date = c;
timeStamp = d;
id = e;
course = f;
Qno = g;
probType = h;
duration = i;
}
void setStartWork(char a) {
strtWork = a;
}
void setEndWork(char b) {
endWork = b;
}
void setDate(char c) {
date = c;
}
void setTimeStamp(char d) {
timeStamp = d;
}
void setID(char e) {
id = e;
}
void setCourse(char f) {
course = f;
}
void setQno(char g) {
Qno = g;
}
void setProbType(char h) {
probType = h;
}
void setDuration(char i) {
duration = i;
}
string getStartWork()
{
return strtWork;
}
string getEndtWork()
{
return endWork;
}
string getDate()
{
return date;
}
string getTimeStamp()
{
return timeStamp;
}
string getID()
{
return id;
}
string getCourse()
{
return course;
}
string getQno()
{
return Qno;
}
string getprobType()
{
return probType;
}
string getDuration()
{
return duration;
}
private:
string strtWork, endWork, date, timeStamp, id, course, Qno, probType, duration;
};