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 : January 1, 1998.
11 authorĀ : Salih Yurttas.
12
13 A.cpp
14*/
15
16
17#include "A.h"
18
19A::
20A() {
21 init();
22}
23
24A::
25A(const A& a) {
26 init();
27}
28
29A&
30A::
31operator=(const A& a) {
32 init();
33}
34
35int
36A::
37get_i0() const {
38 return i0;
39}
40
41double
42A::
43get_d0() const {
44 return d0;
45}
46
47ostream&
48operator<<(ostream& os,
49 const A& a) {
50 os << endl;
51 os << a.i0 << endl;
52 os << a.i1 << endl;
53 os << a.i2 << endl;
54 os << a.i3 << endl;
55 os << endl;
56
57 os << a.d0 << endl;
58 os << a.d1 << endl;
59 os << a.d2 << endl;
60 os << endl;
61
62 return os;
63}
64
65void
66A::
67init() {
68 i0=i1=i2=i3=2;
69
70 d0=d1=d2=2.5;
71}