????? ?????????????, ???????????? ????? CyberForum.ru
???? ????????

????????? ????? ?????????? ???????. ????? ?? ??? ???????????????? - C++

?????
???????????
???????????? ??????
?????? ???? ???????
C++ ????????? ? ??????? http://www.cyberforum.ru/cpp-beginners/thread22461.html
???? ???????? ??????, ?? ??? ?? ?????? ??? ???????? ????? ?????????. ??? ? ????? ??????? ????, ?? ??????? ??? ???: ????????? ??? ??? ??? ????????? ?????????, ???? char * st1="string1"; char...
C++ ??????????? ??????? ??????? ? ?????? ?????????, ???????????? ??????? ????????? ????? ????, ????? ?????? ??????????? ??????? ??????? ? ?????? ?????????, ???????????? ??????? ????????? ???????? http://www.cyberforum.ru/cpp-beginners/thread22453.html
C++ ?????? ????? ????????? ???? ???????? "$"
??? ???????? ???????, ??????? ??? ????????? ? ???????? ????????? ??????? ???? char ???????? ??? ????? ????????? ????? ???????? «$» ? ?????????? ?????????? ??????????? ??????
???????? ???????????? ??????? ??????????? ??????? ? ??????? C++
??? ? ? ?????????? ? ??????? ??????????? ??????, ??? ??????????? ????????????? "?? ???? ????". ??????? ? ????????: ... call f(m,n,x) .... subroutine f(m,n,x) integer m,n real x(m,n) x(i,j)...
C++ ??????????? ???????? wchar_t ????????. http://www.cyberforum.ru/cpp-beginners/thread22424.html
????? ????????. ????????????? ??? - ??? ?????????. ? ???????? ????????? ??????? ?????? ???? ?????????? ???? wchar_t, ??????? ?????? ?????????? ????????? ??????????? ?? ???????? ????????? ?...
C++ ??????????????????? ??? ??????? ????????? ?? Borlandc++ ???????? ? ????????????? ?? ???? ?????????? ?? ??????? ?? ????? ??? ???, ??? ??????? ??? ?????? ????? ?? ?????? ?????????. ?????????

???????? ????????? ????????
maximus09
32 / 32 / 3
???????????: 29.12.2008
?????????: 75
05.02.2009, 18:52
? ?????, ?? ???? ?? ???? ?????? ??? ?????? ?????????. ????? ?????? ???????? ??????????. ?????, ?????? ?? ??????????.

?????? 1.
??? ?????? ???????? ? ????, ??? ???? ??????????, ???????????? ?? ??? ???????? ???????. ????????? ?????????? ?????? ??????? ??????? ?? (x1a,y1a) ? (x1b,y1b). ?????????? ?????? ??????? - (x2a,y2a) ? (x2b,y2b).

?????? ????????
k1 = (y1b-y1a)/(x1b-x1a),
k2 = (y2b-y2a)/(x2b-x2a).

????? ???????

x = (y2a-y1a+k1*x1a-k2*x2a)/(k1-k2)
y = k1*(x-x1a)+y1a

????? ??????? ????????
d1a = sqrt((x1a-x)^2+(y1a-y)^2)
d1b = sqrt((x1b-x)^2+(y1b-y)^2)
d1 = sqrt((x1b-x1a)^2+(y1b-y1a)^2)

d2a = sqrt((x2a-x)^2+(y2a-y)^2)
d2b = sqrt((x2b-x)^2+(y2b-y)^2)
d2 = sqrt((x2b-x2a)^2+(y2b-y2a)^2)

??????? ????????????, ???? ????? ????? ?????????:
d1a+d1b = d1
d2a+d2b = d2

(??? ??? ????????? ?????? ??????????? ????????????).

???????? ??? ????????? ???? ??????? ????????, ????? ??????????, ?????????? ?? ??? ???????? ???? ????.

????????? ????? 20 ????? 18 ??????
?????? 2.
??????, ??? ????? ??????? - ??? ????? ??????? ????? ?????????????? ???????. ??? ????? ?????????? ??? ?? ????????? ?????????????, ??????? ??? ????????? ????????? ?? ????? ???????. ??????? ????? ?????????????? ????????? ??? ????? ???????? ???? ?????????? ?????????????.

??????? ????????????, ?????????? ?????? ???????? ???? (x1,y1), (x2,y2) ? (x3,y3) ????? ????? ???
St = abs((x1-x3)(y2-y3) - (y1-y3)(x2-x3))/2.

????????? ?? Sm ??????? ??????????????.

????? ????????? ?????, ????????? ??????? ???????????? ?????????????? ????? ????? ????? ?? ????? ????????? ??????????????. ??????? ????????? ?????????????. ??????? ????????? ??????? ???? ???? ?????????????. ????????? ?? ?????? S.

???? S>Sm, ?? ????? ????? ??? ??????????????.
???? S=Sm, ?? ????? ????? ?? ??????? ??????????????.
???? S<Sm, ?? ????? ????? ?????? ??????????????.

????, ?? ??? ????????? ??????????? ?????? ??? ????????? ??????????????. ??? ??????????? ?????? ???? ???????? ????????.

????????? ????? 22 ???? 59 ????? 36 ??????
????, ?? ??? ????????? ??????????? ?????? ??? ????????? ??????????????. ??? ??????????? ?????? ???? ???????? ????????.
? ????????, ? ??? ??????????? ?????????????? ???? ????????. ?? ???? ????????? ?????????? ??????? ????? ??????????? ??????????????.
0
 
?????????? - ????? ?????????????, ???????????? ?????, ????????????????
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
???????@Mail.ru