{"id":1703,"date":"2009-02-24T16:09:51","date_gmt":"2009-02-24T13:09:51","guid":{"rendered":"http:\/\/studentpmr.ru\/?p=1703"},"modified":"2009-02-24T16:09:51","modified_gmt":"2009-02-24T13:09:51","slug":"%d0%b8%d1%82%d0%b5%d1%80%d0%b0%d1%82%d0%be%d1%80%d1%8b","status":"publish","type":"post","link":"https:\/\/studentpmr.ru\/?p=1703","title":{"rendered":"\u0418\u0442\u0435\u0440\u0430\u0442\u043e\u0440\u044b."},"content":{"rendered":"<p>\u0418\u0442\u0435\u0440-\u0440\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0438, \u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e,\u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043e\u043f\u0440\u0435\u0434-\u0442\u044c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0438 \u0434\u043b\u044f \u0446\u0438\u043a\u043b\u0438\u0447-\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043d\u0430\u0434 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d-\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.  <!--more-->\u0418\u0442\u0435\u0440-\u0440\u044b \u043e\u0447\u0435\u043d\u044c \u0431\u043b\u0438\u0437\u043a\u0438 \u043a \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c. \u041a\u043b\u0430\u0441\u0441\u044b-\u0438\u0442\u0435\u0440-\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0442\u0435\u0440-\u0440\u044b \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0438\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u043c ,\u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432-\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b.\u041f\u043e\u0434\u043e\u0431\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c, \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0442\u0435\u0440-\u0440\u0430 \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u00ab*\u00bb .\u041f\u0435\u0440\u0435\u0431\u043e\u0440 \u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u043d\u043a\u0440\u0438\u043c\u0435\u043d\u0442\u043e \u0438\u0442\u0435\u0440\u0430\u0442\u043e\u0440\u0430 ++.\u0415\u0441\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u0444-\u0446\u0438\u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0443 \u0438\u0442\u0435\u0440-\u0440\u0430 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430,\u0438\u0442\u0435\u0440-\u043e\u0440 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 (past the end) \u0447\u0442\u043e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e \u043d\u0443\u043b\u0435\u0432\u043e\u043c\u0443 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e. \u0420\u0430\u0437\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u0438\u0442\u0435\u0440-\u0440\u0430 \u043d\u0435\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u043e.<br \/>\n#include&lt;vector&gt;<br \/>\n#include&lt;algorithm&gt;<br \/>\n#include&lt;iostream&gt;<br \/>\nusing namespace std;<br \/>\nvector&lt;int&gt; intvector(100);<br \/>\nvoid main(){<br \/>\nint vector[20]=50;<br \/>\n(1) vector&lt;int&gt;::iterator intiter=find(int vector.begin(),<br \/>\nintvector.end(),50);<br \/>\nif (intiter!=invector.end())<br \/>\ncout&lt;&lt;\u201dvector has value\u201d&lt;*intiter&lt;&lt;endl;<br \/>\nelse cout&lt;&lt;\u201dvector does not contain 50&lt;&lt;endl;<br \/>\n}<br \/>\n\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043e\u043f\u0440\u0435\u0434-\u0441\u044f vector \u0438\u0437 100 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0442\u0438\u043f\u0430 int, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437-\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u043a\u043b\u0430\u0441\u0441\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430  vector&lt;&gt;. \u0412 \u0441\u0442\u0440\u043e\u043a\u0435 (1) \u0438\u0442\u0435\u0440-\u0440 intiter \u043e\u043f\u0440\u0435\u0434-\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0438\u043f\u0430 Iterator \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 vector&lt;int&gt;,\u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430.\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0432 \u0444-\u0446\u0438\u044e Find \u0435\u0449\u0435 2-\u0430 \u0438\u0442\u0435\u0440-\u0440\u0430,\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u044f \u0444-\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 begin \u0438 end. \u0424-\u0446\u0438\u044f begin \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u0442\u0435\u0440-\u0440 \u0434\u043b\u044f 1-\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430.\u0424-\u0446\u0438\u044f end \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 (past the end).2-\u0430 \u0438\u0442\u0435\u0440-\u0440\u0430 \u0432 \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u043e\u043f\u0440\u0435\u0434-\u0442 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430,\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 50.\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444-\u0446\u0438\u0438 find \u043f\u0440\u0438\u0441\u0432\u0430\u0435\u0432\u0430\u0435\u0442\u0441\u044f intiter.   \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 5-\u0442\u044c \u0442\u0438\u043f\u043e\u0432 \u0438\u0442\u0435\u0440-\u043e\u0432:<br \/>\n1)\u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0438\u0442\u0435\u0440-\u0440\u044b:\u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f.<br \/>\n2)\u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0438\u0442\u0435\u0440-\u0440\u044b:\u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438.<br \/>\n3)\u043e\u0434\u043d\u043e\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0438\u0442\u0435\u0440-\u0440\u044b:\u043e\u0431\u0435\u0441\u043f\u0435\u0447-\u0442 \u0447\u0442\u0435\u043d\u0438\u0435 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0441 \u043e\u0434\u043d\u043e\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c(\u0438\u043d\u043a\u0440\u0438\u043c\u0435\u043d\u0442\u043d\u044b\u043c)\u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a \u043d\u0438\u043c.<br \/>\n4)\u0434\u0432\u0443\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0438\u0442\u0435\u0440-\u0440\u044b:\u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430-\u0442 \u0447\u0442\u0435\u043d\u0438\u0435 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0441 2-\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d-\u043c(\u0438\u043d\u043a\u0440\u0438\u043c\u043d\u0442\u043d\u043e-\u0434\u0438\u043a\u0440\u0435\u043c\u0435\u043d-\u043c)\u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c<br \/>\n\u043a \u043d\u0438\u043c.<br \/>\n5)\u0438\u0442\u0435\u0440-\u0440\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430:\u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u0447\u0442\u0435\u043d\u0438\u0435 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c<br \/>\n\u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c.<br \/>\n\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0442\u0435\u0440-\u0440\u0430.<br \/>\ndouble darray[10]={10,11,12,13,14,15,16,17,18,19};<br \/>\nvector&lt;double&gt; v double(10);<br \/>\nvoid main(){<br \/>\nvector&lt;double&gt;::iterator outputIterator=double.begin;<br \/>\ncopy(darray,darray+10,outputIterator);<br \/>\nwhile(outputIterator!=v double.end()){<br \/>\ncout&lt;&lt;*outputIterator&lt;&lt;endl;<br \/>\noutputIterator++;<br \/>\n}}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u0442\u0435\u0440-\u0440\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0438, \u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e,\u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043e\u043f\u0440\u0435\u0434-\u0442\u044c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0438 \u0434\u043b\u044f \u0446\u0438\u043a\u043b\u0438\u0447-\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043d\u0430\u0434 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d-\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48],"tags":[],"_links":{"self":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/1703"}],"collection":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1703"}],"version-history":[{"count":1,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/1703\/revisions"}],"predecessor-version":[{"id":1704,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/1703\/revisions\/1704"}],"wp:attachment":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}