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 I_V.h
14*/
15
16
17#include <iostream>
18#include <vector>
19
20using namespace std;
21
22class I_V {
23public:
24 I_V();
25
26 I_V(const I_V&);
27
28 I_V& operator=(const I_V&);
29
30 virtual int get_size() const;
31
32 virtual int get_d(const int) const;
33
34 virtual vector<int> get_d() const;
35
36 virtual void set_d(const int); // size with default value=0
37
38 virtual void set_d(const int,
39 const int);
40
41 friend ostream& operator<<(ostream&,
42 const I_V&);
43
44protected:
45 vector<int> d;
46};