1/*
2 Copyright(C) 2007
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 : December 1, 2007.
11 authorĀ : Salih Yurttas.
12
13 T_A.h
14*/
15
16
17#ifndef T_A_H
18#define T_A_H
19
20#include <iostream>
21
22using namespace std;
23
24template<class T>
25class T_A {
26public:
27 T_A(const T v=0);
28
29 T_A(const T_A<T>&);
30
31 T_A<T>& operator=(const T_A<T>&);
32
33 T get_a0() const;
34 T get_a1() const;
35
36 void set_a0(const T);
37 void set_a1(const T);
38
39 template<class U> // this syntax changed several times
40 friend ostream& operator<<(ostream&,
41 const T_A<U>&);
42
43private:
44 T a0;
45 T a1;
46};
47#endif