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