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 E.cpp
14*/
15
16
17#include "E.h"
18
19E::
20E(const int i) : i0(i),
21 i1(i),
22 i2(i) {
23}
24
25E::
26E(const E& e) : i0(e.i0),
27 i1(e.i1),
28 i2(e.i2) {
29}
30
31int
32E::
33get_i1() const {
34 return i1;
35}
36
37int
38E::
39get_i2() const {
40 return i2;
41}
42
43void
44E::
45set_i1_i2(const int i) {
46 i1+=i;
47 i2-=i;
48}
49
50ostream& operator<<(ostream& os,
51 const E& e) {
52 os << endl;
53 os << e.i0 << endl;
54 os << e.i1 << endl;
55 os << e.i2 << endl;
56 os << endl;
57
58 return os;
59}