1operator(3) gstream manual operator(3)
2
3
4
6 operator, operator
7
9 #include <gstream.h>
10
11
12 ostream& operator<<(ostream& o, fix const& x);
13
14 istream& operator>>(istream& i, fix& x);
15
17 These two functions don't actually belong to the gstreams, they are
18 here simply because they sometimes make the life a bit easier (without
19 costing anything in executable size if they are left unused). Their
20 purpose is to make the class fix capable of extracting/inserting with
21 the notation
22
23 fix a_number = 0.3;
24 cout << a_number;
25 cin >> a_number;
26
27 in conjuction with the standard stream system. And, by the way, conseā
28 quently also in conjuction with a gstream:
29
30 gstream gs;
31 gs << a_number;
32 gs >> a_number;
33
34 You are probably not interested in calling them with their function
35 names, only with the <</>> operators, so this paragraph is written just
36 to make you aware of the possibility of doing that.
37
38
39
40
41
42gstream version 1.6 operator(3)