{"id":294048,"date":"2019-08-30T15:00:17","date_gmt":"2019-08-30T15:00:17","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=294048"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=294048","title":{"rendered":"\u041a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0439 \u0440\u043e\u0433\u0430\u043b\u0438\u043a \u043d\u0430 \u0421++"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/p3\/un\/an\/p3unan2fc4wnq2quevdb0-ae_b8.png\"\/><\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u00ab\u041b\u0438\u043d\u0443\u043a\u0441 \u043d\u0435 \u0434\u043b\u044f \u0438\u0433\u0440!\u00bb \u2014 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0430\u044f \u0444\u0440\u0430\u0437\u0430: \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438\u0433\u0440 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041d\u043e \u0432\u0441\u0451 \u0436\u0435, \u0438\u043d\u043e\u0433\u0434\u0430, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0447\u0435\u0433\u043e-\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0433\u043e, \u0447\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b\u043e \u0431\u044b \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0435\u0431\u0435\u2026 \u0418 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0435.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u041e\u0441\u043d\u043e\u0432\u0430<\/h3>\n<p>  \u042f \u043d\u0435 \u0441\u0442\u0430\u043d\u0443 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u043a\u043e\u0434 (\u044d\u0442\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e) \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b.<\/p>\n<h4> 1.\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u0436<\/h4>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 (\u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435, \u0431\u0440\u043e\u043d\u044f, \u043e\u043f\u044b\u0442 \u0438 \u0442.\u0434) \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f (\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0442).<\/p>\n<pre><code class=\"cpp\">int x = 5, y = 5;     hp = 100,     maxhp = 100,     dm    = 20,     armor = 0,     xp    = 0,     level = 0,     diff  = 10, \/\/ \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c     pos   = 0; \/\/ \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435  bool reg = 0,        Mdm = 0, \/\/ \u0431\u043e\u043d\u0443\u0441\u044b        ght = 0;  string color; \/\/ \u0446\u0432\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0441\u043e\u0441\u0442\u0430\u044f\u043d\u0438\u044f \u0433\u0435\u0440\u043e\u044f  void hero()  \/\/ \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0433\u0435\u0440\u043e\u044f \u043d\u0430 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b (x ; y) {   cout &lt;&lt; &quot;\\e[u &quot; &lt;&lt; &quot;\\e[0;0H&quot;; \/\/ \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043a\u0443\u0440\u0441\u043e\u0440\u0430, \u0437\u0430\u0442\u0438\u0440\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u043c   for (int i = 0; i &lt;= x; i++)     cout &lt;&lt; RIGHT;              \/\/ \u043c\u0430\u043a\u0440\u043e\u0441 &quot;\\e[1C&quot;   for (int i = 0; i &lt;= y; i++)     cout &lt;&lt; DOWN;             \/\/ \u043c\u0430\u043a\u0440\u043e\u0441 &quot;\\e[1B&quot;   cout &lt;&lt; &quot;\\e[s&quot; &lt;&lt; color &lt;&lt; &quot;\u256c&quot;; \/\/ \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043a\u0443\u0440\u0441\u043e\u0440\u0430 } <\/code><\/pre>\n<p>  <\/p>\n<h4>2.\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u041a\u0430\u043a \u0434\u0432\u0438\u0433\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0438\u0442\u0430\u043a \u044f\u0441\u043d\u043e(x&#8212;\\++, y&#8212;\\++). \u0410 \u0432\u043e\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0431\u043e\u043b\u0435\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u0430:<\/p>\n<pre><code class=\"cpp\">char key; char getkey() {   system(&quot;stty raw&quot;);   key = getchar();   system(&quot;stty cooked&quot;);   return key; } <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u00ab\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b\u00bb. \u041c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e switch&#8217;a, \u043d\u043e \u044f \u043d\u0435\u043d\u0430\u0432\u0438\u0436\u0443 \u0435\u0433\u043e.<\/p>\n<p>  <code>switch(...) case .. : ... ; break<\/code> \u043b\u0443\u0447\u0448\u0435 \u0432\u043e\u0442 \u0442\u0430\u043a<\/p>\n<pre><code class=\"cpp\">#define KEY if (key == #define I ){ #define J ;}else  void keys() {   getkey();     KEY 'a' I x-- ; pos = 1 J     KEY...... } <\/code><\/pre>\n<p>  \u041a\u0440\u0430\u0441\u043e\u0442\u0430! \u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0431\u0435\u0433\u0430\u0435\u043c \u043f\u043e \u044d\u043a\u0440\u0430\u043d\u0443! \u041d\u043e \u043a\u0430\u043a-\u0442\u043e \u0440\u0435\u0437\u043a\u043e\u0432\u0430\u0442\u043e\u2026 \u0418 \u043a\u0443\u0440\u0441\u043e\u0440 \u043c\u0435\u043b\u044c\u043a\u0430\u0435\u0442, \u0438 \u0431\u0443\u043a\u0432\u044b\u2026 \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u043c!<\/p>\n<pre><code class=\"cpp\">\/\/\u0414\u043e \u0446\u0438\u043a\u043b\u0430   cout &lt;&lt; &quot;\\e[?25l&quot;; \/\/\u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a\u0443\u0440\u0441\u043e\u0440\u0430   system(&quot;stty -echo&quot;); \/\/\u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u044d\u0445\u043e-\u0432\u0432\u043e\u0434   system(&quot;xset r rate 120 10&quot;); \/\/ \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043f\u043b\u0430\u0432\u043d\u0443\u044e \/\/\u041f\u043e\u0441\u043b\u0435 \u0446\u0438\u043a\u043b\u0430 \/\/-------Return_normal_system_settings--------   cout &lt;&lt; &quot;\\e[00m&quot;;   system(&quot;reset&quot;);   system(&quot;xset r rate 200 20&quot;); <\/code><\/pre>\n<p>  \u0423\u0445-\u0445-\u0445! \u041e\u0434\u0438\u043d \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0433\u043e\u0442\u043e\u0432!<\/p>\n<h4>3.\u041e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0439 \u043c\u0438\u0440<\/h4>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0434\u0435\u043b\u0430\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0434\u043b\u044f x, y \u043a\u0443\u0441\u043e\u0447\u043a\u043e\u0432 \u043c\u0438\u0440\u0430 \u0438 \u0441\u0430\u043c\u0438\u0445 \u043a\u0443\u0441\u043e\u0447\u043a\u043e\u0432 <code>(char o[N])<\/code>, \u0442\u043e \u0436\u0435 \u0434\u043b\u044f \u043c\u043e\u043d\u0441\u0442\u0440\u043e\u0432 \u0438 \u0431\u043e\u043d\u0443\u0441\u043e\u0432.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>world(int objx[N] .... objy[N] ... obj[N], ... objcolor[N])<\/code> \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 <code>hero()<\/code>, \u043d\u043e \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u2026 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u0440\u0438\u0441\u0443\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u043e\u043b\u0435 \u0437\u0440\u0435\u043d\u0438\u044f(vis) <code>(if (ox[k] &lt; vis && oy[k]....))<\/code><\/p>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 \u0437\u0430\u043b\u0438\u0432\u0430\u0435\u043c \u044d\u043a\u0440\u0430\u043d \u0447\u0430\u0441\u0442\u0438\u0447\u043a\u0430\u043c\u0438 \u043c\u0438\u0440\u0430 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043d\u0435\u0437\u0430\u043c\u044b\u0441\u043b\u043e\u0432\u0430\u0442\u043e\u0433\u043e for \u0438 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e \u0432\u044b\u0434\u0430\u043b\u0431\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043c\u043d\u0430\u0442\u044b \u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u044b, \u0437\u0430\u043e\u0434\u043d\u043e \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432\u0440\u0430\u0433\u043e\u0432 \u0438 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u044b, \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e <code>srand(time(NULL));<\/code><\/p>\n<pre><code class=\"cpp\">\/\/------------------GENERATION--------------- void rooms() {   for (int i = 0; i &lt;= 50; i++)   {     px[i] = rand() % 115 + 2;     py[i] = rand() % 34 + 2;     pl[i] = rand() % 5 + 5;     ph[i] = rand() % 5 +  5;      if (px[i] + pl[i] &gt; 117) px[i] = 50 - pl[i] \/ 2; else     if (px[i] &lt; 2)           px[i] = 50 - pl[i] \/ 2; else     if (py[i] &lt; 1)           py[i] = 15 - ph[i] \/ 2; else     if (py[i] + ph[i] &gt; 37)  py[i] = 15 - ph[i] \/ 2;      for (int j = 0; j &lt;= i; j++)     {       while (px[i] &gt; px[j] && px[i] &lt; px[j] + pl[j])         (px[i]+pl[i]\/2 &gt;= 55) ? px[i]++ : px[i]-- ;        while (py[i] &gt; py[j] && py[i] &lt; py[j] + ph[j])         (py[i]+ph[i]\/2 &gt;= 18) ? py[i]++ : py[i]-- ;        while (px[i]+pl[i] &gt; px[j] && px[i]+pl[i] &lt; px[j] + pl[j])         (px[i]+pl[i]\/2 &gt;= 55) ? px[i]++ : px[i]-- ;        while (py[i]+ph[i] &gt; py[j] && py[i]+ph[i] &lt; py[j] + ph[j])         (py[i]+ph[i]\/2 &gt;= 18) ? py[i]++ : py[i]-- ;     }      for (int j = 0; j &lt;= i; j++)     {       while (px[j] + pl[j] &gt;= 116) px[j]-- ;       while (px[j] &lt; 2)            px[j]++ ;       while (py[j] &lt; 1)            py[j]++ ;       while (py[j] + ph[j] &gt;= 37)  py[j]-- ;     }     tx[i] = px[i]+10; ty[i] = py[i]-3;      if (i &lt;= diff)     {       ex[i]  = px[i];       ey[i]  = py[i];       while (ex[i] &lt; 10){ ex[i]++ ; epos[i] = 3 ;}       while (ey[i] &lt; 10){ ey[i]++ ; epos[i] = 1 ;}       e[i]   = evar[pl[i]];       ecolor[i] = &quot;\\e[00m\\e[31m&quot;;        edm[i] = edmvar[pl[i]];       ehp[i] = ehpvar[pl[i]];       exp[i] = expvar[pl[i]];     }     rect(px[i], py[i], pl[i], ph[i]);   } }  void corrs() {   int pc, px, py;   for (int i = 0; i &lt;= 4; i++)   {     if (i &lt; 2){       px = 3;       py = rand() % 33 + 3;       pc = 110;       line(px, py, pc, true);       line(px, py+1, pc, true);     } else {       px = rand() % 100 + 3;       py = 3;       pc = 33;       line(px, py, pc, false);       line(px+1, py, pc, false);     }   } } <\/code><\/pre>\n<p>  <\/p>\n<h4>4.\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435<\/h4>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043a\u0430\u043a-\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u043a\u0432\u043e\u0437\u044c \u0441\u0442\u0435\u043d\u044b \u0438 \u043c\u043e\u043d\u0441\u0442\u0440\u043e\u0432, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0431\u043e\u043d\u0443\u0441\u044b \u043e\u0442 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432. <\/p>\n<p>  \u041d\u0430\u0448\u0438 \u043b\u044e\u0431\u0438\u043c\u044b\u0435 for \u0438 #define<\/p>\n<pre><code class=\"cpp\">#define TOUCH if (x == ox[i] && y == oy[i] && pos == #define HIT   x == ex[i] && y == ey[i] && pos ==  for (int i = 0; i &lt;= n; i++)   {     if (i &lt;= diff)     {      if (Mdm) ehp[i]-=2 ; \/\/ \u0435\u0441\u043b\u0438 \u0431\u043e\u043d\u0443\u0441 &quot;\u043c\u0430\u0441\u0441\u043e\u0432\u044b\u0439 \u0443\u0440\u043e\u043d&quot; \u0432\u043a\u043b\u044e\u0447\u0435\u043d      epos[i] = 0;       if (ex[i] &lt; x+5 && ex[i] &gt; x-5 &&          ey[i] &lt; y+5 && ey[i] &gt; y-5  )      {        edel(i); \/\/ \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430        if (ex[i] &lt; x I ex[i]++ ; epos[i] = 1 J        if (ex[i] &gt; x I ex[i]-- ; epos[i] = 2 J        if (ey[i] &lt; y I ey[i]++ ; epos[i] = 3 J        if (ey[i] &gt; y I ey[i]-- ; epos[i] = 4 ;}      }    for (int j = 0; j &lt;= n; j++) \/\/ \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0435 \u043c\u043e\u0431\u0430 \u0441\u043e \u0441\u0442\u0435\u043d\u043a\u0430\u043c\u0438        while (ex[i] == ox[j] && ey[i] == oy[j] || ex[i] == ex[j] && ey[i] == ey[j] && j != i)        {          if (epos[i] == 1) ex[i]-- ; else          if (epos[i] == 2) ex[i]++ ; else          if (epos[i] == 3) ey[i]-- ; else          if (epos[i] == 4) ey[i]++ ;        }       if (x == ex[i] && y == ey[i]) \/\/  &quot;\u0431\u0438\u0442\u0432\u0430&quot;       {        if (ehp[i] &gt; 1)        {          ehp[i] -= dm;          (edm[i] &lt; armor) ?          hp -= 0 :          hp -= edm[i]-armor;        } else {          ex[i] = ey[i] = -1;          xp += exp[i];          ehp[i] = 12;        }      }      if (!ght) \/\/ \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u0440\u0438\u0437\u0440\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0435 \u0438\u0433\u0440\u043e\u043a\u0430 \u0441 \u0432\u0440\u0430\u0433\u0430\u043c\u0438      {        if (HIT 1) y++ ;else        if (HIT 2) x-- ;else        if (HIT 3) y-- ;else        if (HIT 4) x++ ;      }     }     if (!ght) \/\/ \u0442\u043e \u0436\u0435, \u043d\u043e \u0441\u043e \u0441\u0442\u0435\u043d\u0430\u043c\u0438     {       TOUCH 1 I y++ J       TOUCH 2 I x-- J       TOUCH 3 I y-- J       TOUCH 4 ) x++ ;     }   }  <\/code><\/pre>\n<p>  <\/p>\n<h3>5.\u041c\u0435\u043d\u044e<\/h3>\n<p>  \u041c\u0435\u043d\u044e \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d, \u043d\u0443\u043c\u0435\u0440\u0443\u044f \u043f\u0443\u043d\u043a\u0442\u044b, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e getkey() \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0432\u044b\u0431\u043e\u0440 \u0438\u0433\u0440\u043e\u043a\u0430. \u041f\u0438\u0448\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441-\u0431\u0430\u0440 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043c\u0435\u043d\u044e \u043f\u0440\u043e\u043a\u0430\u0447\u043a\u0438, \u043f\u0438\u0448\u0435\u043c \u043f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044e, \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e, \u0447\u0442\u043e \u044f \u043d\u0430\u0437\u0432\u0430\u043b \u00abSubsoil\u00bb(\u00ab\u041d\u0435\u0434\u0440\u0430\u00bb).<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0422\u0430\u043a\u043e\u0435 \u0432\u043e\u0442 \u043d\u0435\u0447\u0442\u043e. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u043d\u0435\u0433\u043e, <a href=\"https:\/\/github.com\/SidPic\/Subsoil\/archive\/1.0.tar.gz\">\u0441\u043a\u0430\u0447\u0430\u0432<\/a>, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0432 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"plaintext\">$ sudo chmod +x Subsoil-1.0\/Subsoil<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">$ Subsoil-1.0\/Subsoil<\/code><\/pre>\n<p>  , \u0438\u043b\u0438 \u0436\u0435, \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0432\u043e\u043e\u0434\u0443\u0448\u0435\u0432\u0438\u0432\u0448\u0438\u0441\u044c, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0435\u0431\u0435 \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0432\u043e\u0435\u043c\u0443 \u0432\u043a\u0443\u0441\u0443. \u0417\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u044e: \u043c\u043e\u044f \u0438\u0433\u0440\u0430 \u043d\u0435 \u0438\u0437 \u043b\u0451\u0433\u043a\u0438\u0445!<\/p>\n<h4>Cc\u044b\u043b\u043a\u0438<\/h4>\n<p>  <a href=\"https:\/\/habr.com\/ru\/post\/354826\/\">\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f<\/a>, <a href=\"https:\/\/habr.com\/ru\/post\/335960\/\">\u0412\u043e\u043e\u0434\u0443\u0448\u0435\u0432\u0438\u0442\u0435\u043b\u044c<\/a>.<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/465625\/\"> https:\/\/habr.com\/ru\/post\/465625\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/p3\/un\/an\/p3unan2fc4wnq2quevdb0-ae_b8.png\"\/><\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u00ab\u041b\u0438\u043d\u0443\u043a\u0441 \u043d\u0435 \u0434\u043b\u044f \u0438\u0433\u0440!\u00bb \u2014 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0430\u044f \u0444\u0440\u0430\u0437\u0430: \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438\u0433\u0440 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041d\u043e \u0432\u0441\u0451 \u0436\u0435, \u0438\u043d\u043e\u0433\u0434\u0430, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0447\u0435\u0433\u043e-\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0433\u043e, \u0447\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b\u043e \u0431\u044b \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0435\u0431\u0435\u2026 \u0418 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0435.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-294048","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=294048"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/294048\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=294048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=294048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=294048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}