{"id":179529,"date":"2013-05-13T17:47:02","date_gmt":"2013-05-13T13:47:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=179529"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=179529","title":{"rendered":"<span class=\"post_title\">\u041f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432\u044b\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 C# (\u0427\u0430\u0441\u0442\u044c 1)<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c, %username%. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432\u044b\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 C#, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440.<\/p>\n<h4>\u041f\u0440\u043e\u043b\u043e\u0433<\/h4>\n<p>  \u042f \u0438\u0437\u0443\u0447\u0430\u044e C# \u0443\u0436\u0435 \u0433\u043e\u0434, \u043d\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043c\u043e\u0433\u0443 \u0435\u0433\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u044b\u0443\u0447\u0438\u0442\u044c. \u041f\u043e\u0434\u0443\u043c\u0430\u0432 \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u044f \u043f\u043e\u043d\u044f\u043b \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0435, \u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u043f\u044b\u0442. \u042f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 Brainfuck. \u041d\u0430\u043f\u0438\u0441\u0430\u043b \u0435\u0433\u043e \u044f \u043c\u0438\u043d\u0443\u0442 \u0437\u0430 5, \u043d\u043e \u043e\u043d \u0442\u0430\u043a \u0438 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0431\u0435\u0437 \u0446\u0438\u043a\u043b\u043e\u0432. \u0417\u0430\u0442\u0435\u043c \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u044f\u0437\u044b\u043a, \u043f\u0438\u0441\u0430\u043b \u043a\u0443\u0447\u0443 \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u043e\u0432 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 \u0438 \u0442.\u0434.<br \/>  <b>\u0421\u043a\u043e\u0440\u0435\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442!<\/b><br \/>  <a name=\"habracut\"><\/a><\/p>\n<h5>\u0412\u0435\u0440\u0441\u0438\u044f v1.0<\/h5>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u044b\u043b\u0430 \u043d\u0435 \u0442\u043e \u0447\u0442\u043e \u043d\u0435 \u0443\u0434\u0430\u0447\u043d\u043e\u0439, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0432\u0430\u043b\u043e\u043c. \u041d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0438 BASIC-\u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u0431\u044b\u043b\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0442\u043e\u043d\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u041f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e). <b>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0431\u044b\u043b \u0442\u0430\u043a\u0438\u043c:<\/b>  <\/p>\n<pre><code class=\"python\">#\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u044f\u0437\u044b\u043a\u0430 VISIBLE \u041f\u0440\u0438\u0432\u0435\u0442, \u043c\u0438\u0440! IF 5 &lt; 10 VISIBLE 5 \u0432\u0441\u0435 \u0435\u0449\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 10 <\/code><\/pre>\n<h5>\u0412\u0435\u0440\u0441\u0438\u044f v2.0 \u2014 \u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f<\/h5>\n<p>  \u0420\u0435\u0447\u044c \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043f\u043e\u0439\u0434\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u044f\u0437\u044b\u043a\u0430. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u044d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u0438\u0435\u043c\u043b\u0438\u043c\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0443\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 1.0, \u043d\u043e \u043e\u043d\u0430 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0439.<\/p>\n<h4>\u041f\u0438\u0448\u0435\u043c? \u041f\u0438\u0448\u0435\u043c!<\/h4>\n<p>  \u041d\u0443, \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043a\u043e\u0434\u0438\u043d\u0433. \u0421\u043d\u0430\u0447\u0430\u043b\u043e \u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u044f\u0437\u044b\u043a\u0430, \u0438 \u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c.<br \/>  <b>\u0412\u0438\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0439:<\/b>  <\/p>\n<pre><code class=\"cs\">NULL --                writeline(string);               write(string);               readline[type](variable); F --       -&gt;read(string);       -&gt;show();       -&gt;delete(string);       -&gt;create(string); <\/code><\/pre>\n<p>  \u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0432\u044b \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435 F \u0438 NULL, \u0441\u0435\u0439\u0447\u0430\u0441 \u043e \u043d\u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435. <br \/>  F \u0438 NULL \u2014 \u0442\u0438\u043f\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439, F \u2014 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439, NULL \u2014 \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f. <br \/>  <b>\u0442.\u0435. \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0442\u0430\u043a\u043e\u0432:<\/b><\/p>\n<pre><code class=\"cs\">#\u0418\u043c\u0435\u044e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f F, \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 -&gt; f-&gt;create(C:\\15.txt); #\u041d\u0435 \u0438\u043c\u0435\u044e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f, \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d writeline(\u041f\u0440\u0438\u0432\u0435\u0442%c \u043c\u0438\u0440!); <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u043e? \u0414\u0443\u043c\u0430\u044e \u0434\u0430.<br \/>  \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 %c? \u042d\u0442\u043e \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0438\u043c \u0448\u0442\u0443\u043a\u0430\u043c \u043a\u0430\u043a \\n, \\a etc. (\u0423\u0436 \u0438\u0437\u0432\u0438\u043d\u0438\u0442\u0435, \u0441\u043a\u043b\u0435\u0440\u043e\u0437, \u0437\u0430\u0431\u044b\u043b \u043a\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f).<\/p>\n<p>  %c \u2014 \u0441\u0442\u0430\u0432\u0438\u043c \u0437\u0430\u043f\u044f\u0442\u0443\u044e (\u0441\u043c. \u0434\u0430\u043b\u0435\u0435)<br \/>  %n \u2014 \u043d\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430<\/p>\n<h4>\u041a\u043e\u0434\u0438\u043d\u0433 \u0441\u043a\u043e\u0440\u043e? \u0414\u0430, \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441!<\/h4>\n<p>  \u0418 \u0442\u0430\u043a \u043a\u043e\u0434\u0438\u043d\u0433 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u0441\u0435 \u0434\u043e\u043b\u0433\u043e \u0436\u0434\u0430\u043b\u0438.<br \/>  \u0421\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043e\u043d\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0430\u0440\u0441\u0435\u0440\u0443.<\/p>\n<pre><code class=\"cs\">using System; using System.IO;  namespace lang { \tclass MainClass \t{ \t\tpublic static void Main (string[] args) \t\t{ \t\t\ttry  \t\t\t{ \t\t\t\tusing (StreamReader sr = new StreamReader(args[0]))  \/\/\u0427\u0438\u0442\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \t\t\t\t{ \t\t\t\t\tstring line; \/\/\u0421\u0442\u0440\u043e\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u0442\u044c \t\t\t\t\twhile ((line = sr.ReadLine()) != null)  \/\/\u0427\u0438\u0442\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c \t\t\t\t\t{ \t\t\t\t\t\tParse.PARSE(line); \/\/\u041d\u0430\u0448 \u043f\u0430\u0440\u0441\u0435\u0440 \t\t\t\t\t} \t\t\t\t} \t\t\t} \t\t\tcatch (Exception ex)  \/\/\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c catch \t\t\t{ \t\t\t\tConsole.Write(&quot;\u041e\u0448\u0438\u0431\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f: &quot;); \t\t\t\tConsole.WriteLine(ex.Message); \t\t\t} \t\t} \t} } <\/code><\/pre>\n<p>  \u0414\u0443\u043c\u0430\u044e \u0442\u0443\u0442 \u0432\u0441\u0435 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u044f\u0441\u043d\u043e, \u043f\u043e\u0435\u0445\u0430\u043b\u0438 \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<h4>\u041f\u0430\u0440\u0441\u0435\u0440<\/h4>\n<p>  \u0418\u0442\u0430\u043a, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c <b>Main.cs, funct.cs \u0438 Parse.cs<\/b>. \u042d\u0442\u043e \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u043a\u043b\u0430\u0441\u0441\u044b.<\/p>\n<p>  Main.cs \u2014 \u044d\u0442\u043e \u0442\u043e \u0447\u0442\u043e \u043c\u044b \u043f\u0438\u0441\u0430\u043b\u0438 \u0432\u044b\u0448\u0435<br \/>  Parse.cs \u2014 \u043d\u0430\u0448 \u043f\u0430\u0440\u0441\u0435\u0440 \u0441\u0442\u0440\u043e\u043a<br \/>  funct.cs \u2014 \u043c\u0435\u0442\u043e\u0434\u044b<\/p>\n<p>  <b>\u041f\u0438\u0448\u0435\u043c \u043f\u0430\u0440\u0441\u0435\u0440.<\/b>  <\/p>\n<pre><code class=\"cs\">using System;  namespace lang { \tpublic class Parse \t{ \t\tpublic Parse () \t\t{ \t\t} \t\tpublic static void PARSE(string code)  \t\t{ \t\t\tif (code.IndexOf ('#') != 0) { \t\t\t\tif(code.EndsWith(&quot;;&quot;)) { \t\t\t\t\tint a = code.IndexOf('('); \t\t\t\t\tint b = code.IndexOf(')'); \t\t\t\t\tstring func = code.Substring(0,a); \t\t\t\t\tstring args = code.Substring(a+1,b-a-1); \t\t\t\t\tstring[] arg = args.Split(','); \t\t\t\t\tfunc = func.Replace(&quot; &quot;, &quot;&quot;); \t\t\t\t\tswitch(func.ToLower()) { <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0437\u0430\u0431\u0435\u0433\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442, \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c.<br \/>  <code>public static void PARSE(string code) <\/code> \u2014 \u042d\u0442\u043e \u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 \u0441\u0442\u0440\u043e\u043a<br \/>  <code>if (code.IndexOf ('#') != 0) {<\/code> \u2014 \u0415\u0441\u043b\u0438 \u043a\u043e\u0434 \u043d\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043d\u0430 &#8216;#&#8217; (\u042d\u0442\u043e \u0443 \u043d\u0430\u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439) \u0442\u043e \u043f\u0430\u0440\u0441\u0438\u043c.<br \/>  <code>if(code.EndsWith(&quot;;&quot;)) {<\/code> \u2014 \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u043e\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 &#8216;;&#8217;<br \/>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435, \u0432\u0435\u0434\u044c \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f, \u0445\u043e\u0442\u044c \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c, \u043d\u043e \u043b\u043e\u0433\u0438\u043a\u0430.<\/p>\n<p>  <b>\u041c\u043e\u0434\u0435\u043b\u044c \u043e\u0431\u0440\u0435\u0437\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b:<\/b><\/p>\n<pre><code class=\"cs\">    function(arg1,arg2);                   ^                 ^                   a                 b <\/code><\/pre>\n<p>  \u041c\u044b \u0432\u044b\u0440\u0435\u0437\u0430\u0435\u043c \u0442\u0430\u043a:<\/p>\n<p>  <code>string func = code.Substring(0,a);<\/code> \u2014 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043e\u0431\u0440\u0435\u0437\u0430\u043d\u0438\u0435 \u0441 0 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0439 &#8216;(&#8216;, \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c function<br \/>  <code>string args = code.Substring(a+1,b-a-1);<\/code> \u2014 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043d\u0430\u0447\u0438\u0442\u0430\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0438\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u0441\u043b\u0435 &#8216;(&#8216; \u0434\u043e &quot;);&quot; (+1)<br \/>  <code>string[] arg = args.Split(',');<\/code> \u2014 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 &#8216;,&#8217;<br \/>  <code>func = func.Replace(&quot; &quot;, &quot;&quot;);<\/code> \u2014 \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0441 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u043c.  <\/p>\n<pre><code class=\"cs\">\t\t\t\t\tswitch(func.ToLower()) { \t\t\t\t\tcase &quot;write&quot;: \t\t\t\t\t\tfunct.write(arg); \t\t\t\t\t\tbreak; \t\t\t\t\tcase &quot;writeline&quot;: \t\t\t\t\t\tfunct.writeline(arg); \t\t\t\t\t\tbreak; \t\t\t\t\tcase &quot;readline&quot;: \t\t\t\t\t\tfunct.readln(arg[0]); \t\t\t\t\t\tbreak; \t\t\t\t\t} <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0412\u0430\u043c 3 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, write, writeline \u0438 readline.<\/p>\n<h4>\u0424\u0443\u043d\u043a\u0446\u0438\u0438<\/h4>\n<p>  \u0423 \u043d\u0430\u0441 \u0432 \u044f\u0437\u044b\u043a\u0435 \u0435\u0441\u0442\u044c 3 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435,<\/p>\n<pre><code class=\"cs\">\t\tpublic static string a; \t\tpublic static char b; \t\tpublic static int c; <\/code><\/pre>\n<p>  \u0441 \u043d\u0438\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u043d\u043e\u0432\u0448\u0435\u0441\u0442\u0432\u043e \u044f\u0437\u044b\u043a\u0430 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u044e \u0441 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0432\u0435\u0440\u0441\u0435\u0439.<\/p>\n<p>  <b>\u041a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0439:<\/b><\/p>\n<pre><code class=\"cs\">using System;  namespace lang { \tpublic class funct \t{ \t\tpublic static string a; \t\tpublic static char b; \t\tpublic static int c;  \t\tpublic static void writeline (string[] args)  \t\t{ \t\t\tint z = 0; \t\t\tstring s = &quot;&quot;; \t\t\tif(args[z] == &quot;a&quot;) { \/\/\u0415\u0441\u043b\u0438 writeline(a);  \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e a \t\t\t\tConsole.WriteLine(a); \t\t\t} \t\t\telse if(args[z] == &quot;b&quot;) { \/\/\u0415\u0441\u043b\u0438 writeline(b);  \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e b \t\t\t\tConsole.WriteLine(b); \t\t\t} \t\t\telse if(args[z] == &quot;c&quot;) { \/\/\u0415\u0441\u043b\u0438 writeline(c);  \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e c \t\t\t\tConsole.WriteLine(c); \t\t\t} \t\t\telse { \t\t\t\twhile(z &lt; args.Length) { \/\/\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432 \t\t\t\t\ts += args[z] + &quot; &quot;; \t\t\t\t\tz++; \t\t\t\t} \t\t\t\ts = s.Replace(&quot;%n&quot;, Environment.NewLine); \/\/\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u043c %n \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \t\t\t\ts = s.Replace(&quot;%c&quot;, &quot;,&quot;); \/\/\u0410 %c \u043d\u0430 \u0437\u0430\u043f\u044f\u0442\u0443\u044e \t\t\t\tConsole.WriteLine(s); \/\/\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \t\t\t} \t\t} \t\tpublic static void write (string[] args)  \/\/\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e writeline  \t\t{ \t\t\tint z = 0; \t\t\tstring s = &quot;&quot;; \t\t\tif(args[z] == &quot;a&quot;) { \t\t\t\tConsole.WriteLine(a); \t\t\t} \t\t\telse if(args[z] == &quot;b&quot;) { \t\t\t\tConsole.WriteLine(b); \t\t\t} \t\t\telse if(args[z] == &quot;c&quot;) { \t\t\t\tConsole.WriteLine(c); \t\t\t} \t\t\telse { \t\t\t\twhile(z &lt; args.Length) { \t\t\t\t\ts += args[z] + &quot; &quot;; \t\t\t\t\tz++; \t\t\t\t} \t\t\t\ts = s.Replace(&quot;%n&quot;, Environment.NewLine); \t\t\t\ts = s.Replace(&quot;%c&quot;, &quot;,&quot;); \t\t\t\tConsole.Write(s); \t\t\t} \t\t} \t\tpublic static void readln (string args) { \t\t\tif(args == &quot;a&quot;) { \/\/\u0415\u0441\u043b\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b == a, \u0442\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e a \t\t\t\ta = Console.ReadLine(); \t\t\t} \t\t\telse if(args == &quot;b&quot;) { \/\/\u0423\u043f\u0441, \u043e\u0448\u0438\u0431\u043a\u0430, \u043d\u0435 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0442\u0438\u043f\u043e\u0432 \t\t\t\tConsole.WriteLine(&quot;You can't use \\&quot;b\\&quot; variable as @STRING.&quot;); \t\t\t} \t\t\telse if(args == &quot;c&quot;) { \/\/\u0422\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \t\t\t\tConsole.WriteLine(&quot;You can't use \\&quot;c\\&quot; variable as @STRING.&quot;); \t\t\t} \t\t} \t} }   <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0414\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0438! \t\t\t \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/179529\/\"> http:\/\/habrahabr.ru\/post\/179529\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c, %username%. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432\u044b\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 C#, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440.<\/p>\n<h4>\u041f\u0440\u043e\u043b\u043e\u0433<\/h4>\n<p>  \u042f \u0438\u0437\u0443\u0447\u0430\u044e C# \u0443\u0436\u0435 \u0433\u043e\u0434, \u043d\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043c\u043e\u0433\u0443 \u0435\u0433\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u044b\u0443\u0447\u0438\u0442\u044c. \u041f\u043e\u0434\u0443\u043c\u0430\u0432 \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u044f \u043f\u043e\u043d\u044f\u043b \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0435, \u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u043f\u044b\u0442. \u042f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 Brainfuck. \u041d\u0430\u043f\u0438\u0441\u0430\u043b \u0435\u0433\u043e \u044f \u043c\u0438\u043d\u0443\u0442 \u0437\u0430 5, \u043d\u043e \u043e\u043d \u0442\u0430\u043a \u0438 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0431\u0435\u0437 \u0446\u0438\u043a\u043b\u043e\u0432. \u0417\u0430\u0442\u0435\u043c \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u044f\u0437\u044b\u043a, \u043f\u0438\u0441\u0430\u043b \u043a\u0443\u0447\u0443 \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u043e\u0432 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 \u0438 \u0442.\u0434.<br \/>  <b>\u0421\u043a\u043e\u0440\u0435\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442!<\/b>  <\/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-179529","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/179529","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=179529"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/179529\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=179529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=179529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=179529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}