1/*
2 Copyright(C) 1998
3 All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4
5 Permission to use, copy, modify, and distribute this
6 software and its documentation for EDUCATIONAL purposes
7 and without fee is hereby granted provided that this
8 copyright notice appears in all copies.
9
10 date : September 1, 1998.
11 authorĀ : Salih Yurttas.
12
13 i_d_a_00.cpp
14*/
15
16
17#include <iostream>
18
19using namespace std;
20
21#include "I_D_A.h"
22
23int main(int argc, char* argv[]) {
24
25 I_D_A a;
26
27 cout << "a value after default construction-I_D_A() /" << endl;
28 cout << a << endl;
29
30 a.set_a0(8);
31 a.set_a1(5);
32
33 cout << "a value after a.set_a0(8) /" << endl;
34 cout << " value after a.set_a1(5) /" << endl;
35 cout << a << endl;
36
37 I_D_A b(2);
38
39 cout << "b value after default construction-I_D_A(2) /" << endl;
40 cout << b << endl;
41
42 I_D_A c(b);
43
44 cout << "c value after I_D_A c(b) /" << endl;
45 cout << c << endl;
46
47 b = a;
48
49 cout << "b value after b=a /" << endl;
50 cout << b << endl;
51
52 cout << "b.get_a0() /" << endl;
53 cout << b.get_a0() << endl;
54 cout << "b.get_a1() /" << endl;
55 cout << b.get_a1() << endl;
56
57}