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 t_a_02.cpp
14*/
15
16
17#include <iostream>
18
19using namespace std;
20
21#include "T_A.cpp"
22
23int main(int argc, char *argv[]) {
24
25 T_A<int,double> a;
26
27 cout << "a value after default construction-T_A<int,double>() /" << 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 T_A<int,double> b(2);
38
39 cout << "b value after default construction-T_A<int,double>(2) /" << endl;
40 cout << b << endl;
41
42 T_A<int,double> c(b);
43
44 cout << "c value after T_A<int,double> 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}