You are on page 1of 2

& . . .

1 (3 )
point (x,y).
(1,1)
() ,
. -
. (x,y) double
. 0,0 (
) string
. error.

2 (2 )
set
point, 1.
1 .
5 point (10,5), (4,8), (1,1),
(2,3) (-1,5) set.
(x), (1,2)
(2,5). y .
set.

point 0,0. set
.

3 (2,5 )

.
. , (point)
,
.
SUV, (SUV),
() () .
UML .
.

4 (2,5 )

3.
:

a) = (2 1 )2 + (2 1 )2

b) template < class T, // set::key_type/value_type


class Compare = less<T>, // set::key_compare/value_compare
class Alloc = allocator<T> // set::allocator_type
> class set;

You might also like