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 Q.cpp
14*/
15
16
17#include "Q.h"
18
19Q::
20Q(const int i,
21 const int j) : P(i),
22 i2(j) {
23 cout << "-- Q" << endl;
24}
25
26Q::
27~Q() {
28 cout << "Q --" << endl;
29}
30
31int
32Q::
33get_i2() const {
34 return i2;
35}
36
37void
38Q::
39set_i2(const int i) {
40 i2=i;
41}
42
43ostream&
44operator<<(ostream& os,
45 const Q& q) {
46 os << q.i1 << endl;
47 os << q.i2 << endl;
48 os << endl;
49
50 return os;
51}