{"id":7515,"date":"2009-04-08T16:14:20","date_gmt":"2009-04-08T13:14:20","guid":{"rendered":"http:\/\/studentpmr.ru\/?p=7515"},"modified":"2009-04-08T16:14:20","modified_gmt":"2009-04-08T13:14:20","slug":"%d1%81%d0%b2%d1%8f%d0%b7%d0%bd%d1%8b%d0%b5-%d1%81%d0%bf%d0%b8%d1%81%d0%ba%d0%b8-2","status":"publish","type":"post","link":"https:\/\/studentpmr.ru\/?p=7515","title":{"rendered":"\u0421\u0432\u044f\u0437\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438"},"content":{"rendered":"<p>\u0421\u0432\u044f\u0437\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u0433\u0438\u0431\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438\u0437 \u0441\u0432\u044f\u0437\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u043d\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0435\u0433\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044e \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0438 \u043f\u043e\u0442\u0435\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p> <!--more-->  <\/p>\n<p>\u0421\u0432\u044f\u0437\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0435 \u0438 \u0434\u0432\u043e\u0439\u043d\u044b\u0435 \u0441\u0432\u044f\u0437\u0438. \u0412 \u0441\u043f\u0438\u0441\u043a\u0435 \u0441 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u043c\u0438 \u0441\u0432\u044f\u0437\u044f\u043c\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 \u0441\u043f\u0438\u0441\u043a\u0435 \u0441 \u0434\u0432\u043e\u0439\u043d\u044b\u043c\u0438 \u0441\u0432\u044f\u0437\u044f\u043c\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b.<\/p>\n<p>\u0421\u043f\u0438\u0441\u043a\u0438 \u0441 \u0434\u0432\u043e\u0439\u043d\u044b\u043c\u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043b\u0438 \u0441\u0436\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u041f\u0440\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0441\u044b\u043b\u043a\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f.<\/p>\n<p>\/\/ \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 3<\/p>\n<p>\/\/ \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0441\u0432\u044f\u0437\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0441 \u0434\u0432\u043e\u0439\u043d\u044b\u043c\u0438 <\/p>\n<p>\/\/ \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438<\/p>\n<p>\/\/ \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441 \u0434\u0432\u043e\u0439\u043d\u044b\u043c\u0438 \u0441\u0432\u044f\u0437\u044f\u043c\u0438<\/p>\n<p>template &lt;class DataT&gt; class listob {<\/p>\n<p>public:<\/p>\n<p>DataT info; \/\/\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f<\/p>\n<p>listob&lt;DataT&gt; *next; \/\/\u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u043b\u0435\u0434. \u043e\u0431\u044a\u0435\u043a\u0442<\/p>\n<p>listob&lt;DataT&gt; *prior; \/\/\u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043f\u0440\u0435\u0434. \u043e\u0431\u044a\u0435\u043a\u0442<\/p>\n<p>listob() {<\/p>\n<p>info = 0;<\/p>\n<p>next = NULL;<\/p>\n<p>prior = NULL;<\/p>\n<p>};<\/p>\n<p>listob (DataT c) {<\/p>\n<p>info = c;<\/p>\n<p>next = NULL;<\/p>\n<p>prior = NULL;<\/p>\n<p>};<\/p>\n<p>listob&lt;DataT&gt; *getnext() { return next; }<\/p>\n<p>listob&lt;DataT&gt; *getprior() { return prior; }<\/p>\n<p>void getinfo (DataT &amp;c) { c = info; }<\/p>\n<p>void change (DataT c) { info = c; } \/\/\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430<\/p>\n<p>friend ostream &amp;operator&lt;&lt;(ostream &amp;stream,listob&lt;DataT&gt; o);<\/p>\n<p>friend ostream &amp;operator&lt;&lt;(ostream &amp;stream,listob&lt;DataT&gt; *o);<\/p>\n<p>friend istream &amp;operator&gt;&gt;(istream &amp;stream,listob&lt;DataT&gt; &amp;o);<\/p>\n<p>};<\/p>\n<p>\/\/ \u041f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0430 &lt;&lt; \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 listob<\/p>\n<p>template &lt;class DataT&gt;<\/p>\n<p>ostream &amp;operator&lt;&lt;(ostream &amp;stream,listob&lt;DataT&gt; o)<\/p>\n<p>{<\/p>\n<p>stream &lt;&lt; o.info &lt;&lt; endl;<\/p>\n<p>return stream;<\/p>\n<p>}<\/p>\n<p>\/\/ \u041f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0430 &lt;&lt; \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442 \u0442\u0438\u043f\u0430 listob<\/p>\n<p>template &lt;class DataT&gt;<\/p>\n<p>ostream &amp;operator&lt;&lt;(ostream &amp;stream,listob&lt;DataT&gt; *o)<\/p>\n<p>{<\/p>\n<p>stream &lt;&lt; o-&gt;info &lt;&lt; endl;<\/p>\n<p>return stream;<\/p>\n<p>}<\/p>\n<p>\/\/ \u041f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0430 &gt;&gt; \u0434\u043b\u044f cc\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442 \u0442\u0438\u043f\u0430 listob<\/p>\n<p>template &lt;class DataT&gt;<\/p>\n<p>istream &amp;operator&gt;&gt;(istream &amp;stream,listob&lt;DataT&gt; &amp;o)<\/p>\n<p>{<\/p>\n<p>cout &lt;&lt; &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e: &quot; ;<\/p>\n<p>stream &gt;&gt; o.info;<\/p>\n<p>return stream;<\/p>\n<p>}<\/p>\n<p>\/\/\u041a\u043b\u0430\u0441\u0441, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 \u0441\u0432\u044f\u0437\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a<\/p>\n<p>template &lt;class DataT&gt; class dllist : public listob&lt;DataT&gt; {<\/p>\n<p>listob&lt;DataT&gt; *start, *end; \/\/*next, *prior<\/p>\n<p>public:<\/p>\n<p>dllist() { start = end = NULL; }<\/p>\n<p>~dllist() ;<\/p>\n<p>void store(DataT c); \/\/\u0432\u0432\u043e\u0434 \u043d\u043e\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430<\/p>\n<p>void remove(listob&lt;DataT&gt; *ob); \/\/\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430<\/p>\n<p>void frwdlist(); \/\/\u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441 \u043d\u0430\u0447\u0430\u043b\u0430<\/p>\n<p>void bkwdlist(); \/\/ \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441 \u043a\u043e\u043d\u0446\u0430<\/p>\n<p>listob&lt;DataT&gt; *find(DataT c); \/\/\u0443\u043a. \u043d\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435<\/p>\n<p>listob&lt;DataT&gt; *getstart() { return start; }<\/p>\n<p>listob&lt;DataT&gt; *getend() { return end; }<\/p>\n<p>};<\/p>\n<p>\/\/ \u0414\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 dllist<\/p>\n<p>template &lt;class DataT&gt; dllist&lt;DataT&gt; :: ~dllist()<\/p>\n<p>{<\/p>\n<p>listob&lt;DataT&gt; *p, *p1;<\/p>\n<p>p = start;<\/p>\n<p>while (p) {<\/p>\n<p>p1 = p-&gt;next;<\/p>\n<p>delete p;<\/p>\n<p>p = p1;<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>\u041a\u043b\u0430\u0441\u0441 dllist \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0446\u0435\u043b\u044b\u0439 \u0440\u044f\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043d\u0430\u0434 \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0441 \u0434\u0432\u043e\u0439\u043d\u044b\u043c\u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438:<\/p>\n<p>&#8212; \u0432\u0432\u043e\u0434 \u043d\u043e\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f store();<\/p>\n<p>&#8212; \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f remove();<\/p>\n<p>&#8212; \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432 \u043b\u044e\u0431\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u0438 frwdlist() \u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u043a \u043a\u043e\u043d\u0446\u0443 \u0438 bkwdlist() \u043e\u0442 \u043a\u043e\u043d\u0446\u0430 \u043a \u043d\u0430\u0447\u0430\u043b\u0443<\/p>\n<p>&#8212; \u043f\u043e\u0438\u0441\u043a \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f find();<\/p>\n<p>&#8212; \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043e \u0438 \u043a\u043e\u043d\u0435\u0439 \u0441\u043f\u0438\u0441\u043a\u0430<\/p>\n<p>\/\/\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430<\/p>\n<p>template &lt;class DataT&gt; void dllist&lt;DataT&gt; :: store(DataT c)<\/p>\n<p>{<\/p>\n<p>listob&lt;DataT&gt; *p;<\/p>\n<p>p = new listob&lt;DataT&gt;;<\/p>\n<p>if (!p) {<\/p>\n<p>cout &lt;&lt; &quot;\u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438\\n&quot;;<\/p>\n<p>exit(1);<\/p>\n<p>}<\/p>\n<p>p-&gt;info = c;<\/p>\n<p>if (start == NULL) { \/\/\u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0438\u0441\u043a\u0430<\/p>\n<p>end = start = p;<\/p>\n<p>}<\/p>\n<p>else {<\/p>\n<p>p-&gt;prior = end;<\/p>\n<p>end-&gt;next = p;<\/p>\n<p>end = p;<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>\/\/\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439<\/p>\n<p>template &lt;class DataT&gt; void<\/p>\n<p>dllist&lt;DataT&gt; :: remove(dllist&lt;DataT&gt; *ob)<\/p>\n<p>{<\/p>\n<p>if (ob-&gt;prior) { \/\/\u043d\u0435 \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/p>\n<p>ob-&gt;prior-&gt;next = ob-&gt;next;<\/p>\n<p>if (ob-&gt;next) \/\/\u043d\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/p>\n<p>ob-&gt;next-&gt;prior = ob-&gt;prior;<\/p>\n<p>else \/\/\u0438\u043d\u0430\u0447\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/p>\n<p>end = ob-&gt;prior; \/\/\u043d\u0430 \u043a\u043e\u043d\u0435\u0446 \u0441\u043f\u0438\u0441\u043a\u0430<\/p>\n<p>}<\/p>\n<p>else { \/\/\u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0438\u0441\u043a\u0430<\/p>\n<p>if (ob-&gt;next) { \/\/ \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0435 \u043f\u0443\u0441\u0442<\/p>\n<p>ob-&gt;next-&gt;prior = NULL;<\/p>\n<p>start = ob-&gt;next;<\/p>\n<p>}<\/p>\n<p>else \/\/\u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0443\u0441\u0442<\/p>\n<p>start = end = NULL;<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>\/\/ \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u043a \u043a\u043e\u043d\u0446\u0443<\/p>\n<p>template &lt;class DataT&gt; void dllist&lt;DataT&gt; :: frwdlist()<\/p>\n<p>{<\/p>\n<p>listob&lt;DataT&gt; *temp;<\/p>\n<p>temp = start;<\/p>\n<p>while (temp) {<\/p>\n<p>cout &lt;&lt; temp-&gt;info &lt;&lt; &quot; &quot;;<\/p>\n<p>temp = temp-&gt;getnext();<\/p>\n<p>}<\/p>\n<p>cout &lt;&lt; endl;<\/p>\n<p>}<\/p>\n<p>\/\/ \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0442 \u043a\u043e\u043d\u0446\u0430 \u043a \u043d\u0430\u0447\u0430\u043b\u0443<\/p>\n<p>template &lt;class DataT&gt; void dllist&lt;DataT&gt; :: bkwdlist()<\/p>\n<p>{<\/p>\n<p>listob&lt;DataT&gt; *temp;<\/p>\n<p>temp = end;<\/p>\n<p>while (temp) {<\/p>\n<p>cout &lt;&lt; temp-&gt;info &lt;&lt; &quot; &quot;;<\/p>\n<p>temp = temp-&gt;getprior();<\/p>\n<p>}<\/p>\n<p>cout &lt;&lt; endl;<\/p>\n<p>}<\/p>\n<p>\/\/ \u041f\u043e\u0438\u0441\u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0433\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0449\u0443\u044e \u0441<\/p>\n<p>\/\/ \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439<\/p>\n<p>template &lt;class DataT&gt; listob&lt;DataT&gt;<\/p>\n<p>*dllist&lt;DataT&gt; :: find(DataT c)<\/p>\n<p>{<\/p>\n<p>listob&lt;DataT&gt; *temp;<\/p>\n<p>temp = start;<\/p>\n<p>while (temp) {<\/p>\n<p>if (c == temp-&gt;info) return temp;<\/p>\n<p>temp = temp-&gt;getnext();<\/p>\n<p>}<\/p>\n<p>return NULL;<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0432\u044f\u0437\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u0433\u0438\u0431\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438\u0437 \u0441\u0432\u044f\u0437\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u043d\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0435\u0433\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044e \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0438 \u043f\u043e\u0442\u0435\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[],"_links":{"self":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/7515"}],"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=7515"}],"version-history":[{"count":0,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/7515\/revisions"}],"wp:attachment":[{"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}