-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstl_sequence_containers_ticpp.h
60 lines (49 loc) · 968 Bytes
/
stl_sequence_containers_ticpp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include<iostream>
#include <set>
#include <iterator>
#include <fstream>
#include <vector>
#include <sstream>
using namespace std;
class shape{
public:
virtual void draw() = 0;
virtual ~shape();
};
class circle:public shape{
public:
void draw();
~circle();
};
class traingle:public shape{
public:
void draw();
~traingle();
};
class square:public shape{
public:
void draw();
~square();
};
class Noisy{
static long create, assign, copycons, destroy;
long id;
public:
Noisy();
Noisy(const Noisy& rv);
Noisy& operator=(const Noisy& rv);
~Noisy();
friend bool operator<(const Noisy& lv, const Noisy& rv){return lv.id < rv.id;}
friend bool operator==(const Noisy& lv, const Noisy& rv);
friend ostream& operator<<(ostream& os, const Noisy& n);
friend class NoisyReport;
};
struct NoisyGen{
Noisy operator()();
};
class NoisyReport{
static NoisyReport nr;
NoisyReport(); //private constructor
public:
~NoisyReport();
};