divyang4481 / mipt-hw

Automatically exported from code.google.com/p/mipt-hw
0 stars 0 forks source link

task04 TGeometry (Анастасьев) #200

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
anastasyev_daniil/task04_TGeometry/

Original issue reported on code.google.com by dan.anas...@gmail.com on 15 Apr 2013 at 12:21

GoogleCodeExporter commented 9 years ago
0. Warnings:
main.cpp: In instantiation of 'bool TSegment<T>::HasPoint(const TPoint<T>&) 
const [with T = int]':
main.cpp:220:64:   required from here
main.cpp:87:84: warning: suggest parentheses around '&&' within '||' 
[-Wparentheses]
main.cpp: In instantiation of 'bool TPolygon<T>::HasPoint(const TPoint<T>&) 
const [with T = int]':
main.cpp:233:61:   required from here
main.cpp:121:14: warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]
main.cpp:126:14: warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]
main.cpp: In instantiation of 'bool TPolygon<T>::Intersects(const TSegment<T>&) 
const [with T = int]':
main.cpp:234:69:   required from here
main.cpp:135:16: warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]

1. У Вашего класса TPoint можно получить 
значения координат, но нельзя их изменить. 
Это оч странно.

Original comment by aivyu...@gmail.com on 28 Apr 2013 at 6:22

GoogleCodeExporter commented 9 years ago

Original comment by dan.anas...@gmail.com on 16 May 2013 at 7:00

GoogleCodeExporter commented 9 years ago

Original comment by dan.anas...@gmail.com on 16 May 2013 at 7:08

GoogleCodeExporter commented 9 years ago
Решение принято.

Минус 40% за опоздание на 2 недели.

Original comment by aivyu...@gmail.com on 17 May 2013 at 12:21