-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.cpp
More file actions
42 lines (31 loc) · 809 Bytes
/
Source.cpp
File metadata and controls
42 lines (31 loc) · 809 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
/**
* @file Source.cpp
*
* @brief This code creates Counter objects and execute some
* Date members for testing prupose.
*
* @author Saif Ullah Ijaz
*
*/
#include<iostream>
#include "Counter.h"
using namespace std;
// function main begins program execution
void main() {
Counter c1, c2;
++c1;
c1 = -c1;
c2 = -c1;
Counter c3;
cout << "Object 1:" << endl;
cout << "Serial: " << c1.GetSerialNo() << endl;
cout << "Count: " << c1.GetCount() << endl << endl;
cout << "Object 2:" << endl;
cout << "Serial: " << c2.GetSerialNo() << endl;
cout << "Count: " << c2.GetCount() << endl << endl;
cout << "Object 3:" << endl;
cout << "Serial: " << c3.GetSerialNo() << endl;
cout << "Count: " << c3.GetCount() << endl << endl;
system("pause");
}
// end main