{"id":7766,"date":"2009-04-09T11:22:47","date_gmt":"2009-04-09T08:22:47","guid":{"rendered":"http:\/\/studentpmr.ru\/?p=7766"},"modified":"2016-04-06T15:40:52","modified_gmt":"2016-04-06T12:40:52","slug":"%d1%84%d0%b0%d0%b9%d0%bb-electrocpp-%d0%b8%d1%81%d1%85%d0%be%d0%b4%d0%bd%d1%8b%d0%b9-%d1%82%d0%b5%d0%ba%d1%81%d1%82-%d0%bf%d1%80%d0%be%d0%b3%d1%80%d0%b0%d0%bc%d0%bc%d1%8b","status":"publish","type":"post","link":"http:\/\/studentpmr.ru\/?p=7766","title":{"rendered":"\u0424\u0430\u0439\u043b ELECTRO.cpp &ndash; \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b"},"content":{"rendered":"<p>\/* \u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0445\u0435\u043c.<\/p>\n<p>\u0414\u0430\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0445\u0435\u043c\u044b, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0438\u043a\u0435 \u0438 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u0442\u0435\u0445\u043d\u0438\u043a\u0435. *\/<\/p>\n<p>\/\/ \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a<\/p>\n<p> <!--more-->  <\/p>\n<p>#include &lt;stdio.h&gt;<\/p>\n<p>#include &lt;conio.h&gt;<\/p>\n<p>#include &lt;math.h&gt;<\/p>\n<p>#include &lt;graphics.h&gt;<\/p>\n<p>#include &lt;printgr.h&gt;<\/p>\n<p>#include &quot;mouse.cpp&quot;<\/p>\n<p>\/\/ \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 (\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442 \u0442\u0435 \/\/ \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u0443\u044e\u0442).<\/p>\n<p>void rezistor(int,int,int,int);<\/p>\n<p>void condensator(int,int,int,int);<\/p>\n<p>void catushka(int,int,int,int);<\/p>\n<p>void reostat(int,int,int,int,int,int);<\/p>\n<p>void ampermetr(int,int,int,int);<\/p>\n<p>void voltmetr(int,int,int,int);<\/p>\n<p>void zazemlitel(int,int,int,int);<\/p>\n<p>void diod(int,int,int,int);<\/p>\n<p>void eds(int,int,int,int);<\/p>\n<p>void lampochka(int,int,int,int);<\/p>\n<p>void galvanometr(int,int,int,int);<\/p>\n<p>void antena(int,int,int,int);<\/p>\n<p>void zazhim(int,int,int,int);<\/p>\n<p>void kluch(int,int,int,int);<\/p>\n<p>void provod(int,int,int,int);<\/p>\n<p>void tranzistor(int,int,int,int,int);<\/p>\n<p>void correct(int,int,int,int);<\/p>\n<p>int pozition(int,int,int,int);<\/p>\n<p>\/\/ \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0432 \/\/\u0446\u0438\u043a\u043b\u0430\u0445 for \u0432\u043e \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u043a\u0438 \/\/\u0434\u0430\u043d\u043d\u044b\u0445).<\/p>\n<p>static int i,j;<\/p>\n<p>void main (void){<\/p>\n<p>\/* \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 *\/<\/p>\n<p>int driver=DETECT,mode,gerr;<\/p>\n<p>initgraph(&amp;driver,&amp;mode,&quot;c:\\\\work\\\\bc\\\\bgi&quot;);<\/p>\n<p>gerr=graphresult();<\/p>\n<p>if(gerr!=grOk){<\/p>\n<p>puts(&quot;\u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0438&quot;);<\/p>\n<p>}<\/p>\n<p>cleardevice();<\/p>\n<p>\/* \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u00ab\u043c\u044b\u0448\u044c\u00bb *\/<\/p>\n<p>initmouse();<\/p>\n<p>set_graph_cursor(0,0,mask1);\/\/ \u0432\u044b\u0431\u043e\u0440 \u0446\u0432\u0435\u0442\u0430 \u043a\u0443\u0440\u0441\u043e\u0440\u0430 (\u0431\u0435\u043b\u044b\u0439)<\/p>\n<p>\/\/ \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0433\u043e\u0440\u044f\u0447\u0435\u0433\u043e \u043f\u044f\u0442\u043d\u0430 <\/p>\n<p>cursor_on();\/\/ \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0440 \u00ab\u043c\u044b\u0448\u0438\u00bb<\/p>\n<p>cursor_off();\/\/\u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0440<\/p>\n<p>setbkcolor(7);\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 (\u0441\u0435\u0440\u044b\u0439)<\/p>\n<p>setcolor(15);\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0446\u0432\u0435\u0442 \u043b\u0438\u043d\u0438\u0438 (\u0431\u0435\u043b\u044b\u0439)<\/p>\n<p>\/* \u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u0442\u043e\u043b\u0430 *\/<\/p>\n<p>\/\/ \u041e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u0440\u0430\u043c\u043a\u0438<\/p>\n<p>line(8,7,8,470);\/\/\u043b\u0435\u0432\u0430\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043b\u0438\u043d\u0438\u044f<\/p>\n<p>line(8,7,630,7);\/\/\u0432\u0435\u0440\u0445\u043d\u044f\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043b\u0438\u043d\u0438\u044f<\/p>\n<p>line(630,7,630,470);\/\/\u043f\u0440\u0430\u0432\u0430\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043b\u0438\u043d\u0438\u044f<\/p>\n<p>line(630,470,8,470);\/\/\u043d\u0438\u0436\u043d\u044f\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043b\u0438\u043d\u0438\u044f<\/p>\n<p>\/\/ \u041c\u0435\u0441\u0442\u043e \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u043a<\/p>\n<p>line(108,7,108,470);<\/p>\n<p>line(58,50,58,400);<\/p>\n<p>line(8,365,108,365);<\/p>\n<p>line(8,50,630,50);<\/p>\n<p>line(108,435,630,435);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* \u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0445\u0435\u043c. \u0414\u0430\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0445\u0435\u043c\u044b, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0438\u043a\u0435 \u0438 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u0442\u0435\u0445\u043d\u0438\u043a\u0435. *\/ \/\/ \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[],"_links":{"self":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/7766"}],"collection":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7766"}],"version-history":[{"count":1,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/7766\/revisions"}],"predecessor-version":[{"id":26133,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/7766\/revisions\/26133"}],"wp:attachment":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7766"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}