{"id":481317,"date":"2026-05-27T21:21:43","date_gmt":"2026-05-27T21:21:43","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=481317"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=481317","title":{"rendered":"\u042f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f T"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>\u042f\u0437\u044b\u043a T \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u043a\u0430\u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a C \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u0432 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435. \u041f\u043e\u0434\u043e\u0431\u043d\u043e \u0442\u043e\u043c\u0443, \u043a\u0430\u043a C \u0441\u0442\u0430\u043b \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c \u0434\u043b\u044f \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d, T \u043f\u0440\u0438\u0437\u0432\u0430\u043d \u0437\u0430\u043d\u044f\u0442\u044c \u0442\u0443 \u0436\u0435 \u043d\u0438\u0448\u0443 \u0432 \u043c\u0438\u0440\u0435 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432. \u041c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0437\u043c\u0430 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u0431\u0438\u0442\u044b \u0442\u0440\u0438\u0442\u0430\u043c\u0438, \u0431\u0430\u0439\u0442\u044b \u0442\u0440\u0430\u0439\u0442\u0430\u043c\u0438, \u0430 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u2014 \u0438\u0445 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u044b\u043c\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0430\u043c\u0438.<\/p>\n<p>\u041a\u043d\u0438\u0433\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u00ab\u042f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f C\u00bb, \u0447\u0442\u043e\u0431\u044b \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c, \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 \u0441 C, \u043c\u043e\u0433 \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0441\u0432\u043e\u0438\u0442\u044c T, \u0430 \u043d\u043e\u0432\u0438\u0447\u043e\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<h3>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435 \u043a \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u0438\u0437\u0434\u0430\u043d\u0438\u044e<\/h3>\n<p>\u042f\u0437\u044b\u043a T \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0438\u0437 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0441 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u043e\u0439 \u00ab\u0421\u0435\u0442\u0443\u043d\u044c\u00bb \u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043c\u043d\u043e\u0433\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438. \u041c\u044b \u0441\u0442\u0440\u0435\u043c\u0438\u043b\u0438\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0442\u0440\u0438\u0442\u0430\u043c\u0438 \u0442\u0430\u043a \u0436\u0435 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043a\u0430\u043a C \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0431\u0438\u0442\u0430\u043c\u0438. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u2014 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430, \u0442\u0440\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b \u2014 \u0434\u0430\u044e\u0442 \u043d\u043e\u0432\u044b\u0435 \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0443\u0440\u043e\u0439.<\/p>\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p>T \u2014 \u044d\u0442\u043e \u044f\u0437\u044b\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0435\u0434\u0438\u043d\u0438\u0446\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong>\u0442\u0440\u0438\u0442<\/strong> (\u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u044f\u0434), \u0430 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c \u2014 <strong>\u0442\u0440\u0430\u0439\u0442<\/strong> (9 \u0442\u0440\u0438\u0442\u043e\u0432). \u0412\u0441\u0435 \u0446\u0435\u043b\u044b\u0435 \u0442\u0438\u043f\u044b \u043a\u0440\u0430\u0442\u043d\u044b \u0442\u0440\u0430\u0439\u0442\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 (<code>-<\/code>, <code>0<\/code>, <code>+<\/code>). \u041b\u043e\u0433\u0438\u043a\u0430 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u0430\u044f, \u0441 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438 \u00ab\u0438\u0441\u0442\u0438\u043d\u0430\u00bb, \u00ab\u043b\u043e\u0436\u044c\u00bb \u0438 \u00ab\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c\u00bb. \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d \u0443 C \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438.<\/p>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 T \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439, \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0432 \u0444\u0430\u0439\u043b\u044b. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u043e\u0432, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 C.<\/p>\n<h3>1. \u041e\u0431\u0437\u043e\u0440 \u044f\u0437\u044b\u043a\u0430<\/h3>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u044f\u0437\u044b\u043a\u0430 T \u0441 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043e\u0431\u0437\u043e\u0440\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439. \u042d\u0442\u0430 \u0433\u043b\u0430\u0432\u0430 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442 \u0432\u0430\u0441 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u044f\u0437\u044b\u043a\u0430: \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438, \u0442\u0438\u043f\u0430\u043c\u0438, \u0446\u0438\u043a\u043b\u0430\u043c\u0438, \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u0438 \u0432\u0432\u043e\u0434\u043e\u043c-\u0432\u044b\u0432\u043e\u0434\u043e\u043c. \u041a \u043a\u043e\u043d\u0446\u0443 \u0433\u043b\u0430\u0432\u044b \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e, \u043d\u043e \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 T.<\/p>\n<h4>1.1. \u041d\u0430\u0447\u043d\u0451\u043c, \u043f\u043e\u0436\u0430\u043b\u0443\u0439<\/h4>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u2014 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435:<\/p>\n<pre><code>#include &lt;tio.h&gt;tint main() {    print(\"\u041f\u0440\u0438\u0432\u0435\u0442, \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u043c\u0438\u0440!\\n\");    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u041f\u0440\u0438\u0432\u0435\u0442, \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u043c\u0438\u0440!\\n\");    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>main<\/code> (<code>\u0433\u043b\u0430\u0432\u043d\u0430\u044f<\/code>) \u2014 \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430. <code>print<\/code> (<code>\u043f\u0435\u0447\u0430\u0442\u044c<\/code>) \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u0443, \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d\u043d\u0443\u044e \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0442\u0440\u0430\u0439\u0442\u043e\u043c <code>0t<\/code>. \u0422\u0438\u043f <code>tint<\/code> (<code>\u0442\u0446\u0435\u043b<\/code>) \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0446\u0435\u043b\u043e\u0435 (\u0442\u0440\u0430\u0439\u0442). \u041b\u0438\u0442\u0435\u0440\u0430\u043b <code>0t<\/code> \u2014 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043d\u043e\u043b\u044c \u0441 \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u043e\u043c <code>t<\/code>, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0438\u043c \u0442\u0438\u043f <code>tint<\/code>. <code>return<\/code> (<code>\u0432\u043e\u0437\u0432\u0440\u0430\u0442<\/code>) \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<h4>1.2. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>\u0412 \u044f\u0437\u044b\u043a\u0435 T \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u0440\u044f\u0434 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0442\u0438\u043f\u043e\u0432: <code>tint<\/code> (<code>\u0442\u0446\u0435\u043b<\/code>), <code>tryte<\/code> (<code>\u0442\u0440\u0430\u0439\u0442<\/code>, \u0441\u0438\u043d\u043e\u043d\u0438\u043c <code>tint<\/code>), <code>tlong<\/code> (<code>\u0442\u0434\u043b\u0438\u043d<\/code>), <code>tfloat<\/code> (<code>\u0442\u0432\u0435\u0449<\/code>), <code>tdouble<\/code> (<code>\u0442\u0434\u0432\u043e\u0439\u043d<\/code>). \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0432 C, \u043d\u043e \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432.<\/p>\n<pre><code>#include &lt;tio.h&gt;tint main() {    tryte a = 0t+-0_0+0;   \/\/ \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b    tryte b = 50t;         \/\/ \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b    tryte sum = a + b;    printtryte(sum);       \/\/ \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 a = 0t+-0_0+0;   \/\/ \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b    \u0442\u0440\u0430\u0439\u0442 b = 50t;         \/\/ \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b    \u0442\u0440\u0430\u0439\u0442 sum = a + b;    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(sum);      \/\/ \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f: <code>+<\/code>, <code>-<\/code>, <em>, <\/em><code><em>\/<\/em><\/code><em>, <\/em><code><em>%<\/em><\/code><em>. \u0414\u0435\u043b\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0441 \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435\u043c \u043a \u2013\u221e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <\/em><code><em>-5t \/ 3t<\/em><\/code><em> \u0434\u0430\u0451\u0442 <\/em><code><em>-2t<\/em><\/code><em>, \u0442\u0430\u043a \u043a\u0430\u043a <\/em><code><em>-5t = (-2t)<\/em>3t + 1t<\/code>.<\/p>\n<h4>1.3. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f for<\/h4>\n<p>\u0426\u0438\u043a\u043b <code>for<\/code> (<code>\u0434\u043b\u044f<\/code>) \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0432 C, \u043d\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u044b\u043c. \u0422\u0435\u043b\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f, \u043f\u043e\u043a\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0440\u0430\u0432\u043d\u043e <code>true<\/code> (<code>\u0438\u0441\u0442\u0438\u043d\u0430<\/code>). \u0415\u0441\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>maybe<\/code> (<code>\u043c\u043e\u0436\u0435\u0442<\/code>) \u2014 \u0446\u0438\u043a\u043b \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<pre><code>#include &lt;tio.h&gt;tint main() {    for (tryte i = 0t; i &lt; 10t; i = i + 1t)        printbal(i);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0434\u043b\u044f (\u0442\u0440\u0430\u0439\u0442 i = 0t; i &lt; 10t; i = i + 1t)        \u043f\u0435\u0447\u0430\u0442\u044c\u0431\u0430\u043b(i);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b \u043e\u0442 0 \u0434\u043e 9: <code>0<\/code>, <code>+<\/code>, <code>+-<\/code>, <code>++<\/code>, <code>+--<\/code>, <code>+-0<\/code>, <code>+-+<\/code>, <code>++-<\/code>, <code>++0<\/code>, <code>+++<\/code>.<\/p>\n<h4>1.4. \u0418\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/h4>\n<p>\u0418\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438. \u041f\u0435\u0440\u0432\u044b\u0439 \u2014 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 <code>#define<\/code> (<code>#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c<\/code>):<\/p>\n<pre><code>#define MAX 100t<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c MAX 100t<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u2014 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f:<\/p>\n<pre><code>const tryte MAX = 100t;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u043a\u043e\u043d\u0441\u0442 \u0442\u0440\u0430\u0439\u0442 MAX = 100t;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0438\u0441\u0442\u0438\u043d\u043d\u043e\u0441\u0442\u0438: <code>true<\/code> (<code>\u0438\u0441\u0442\u0438\u043d\u0430<\/code>), <code>false<\/code> (<code>\u043b\u043e\u0436\u044c<\/code>), <code>maybe<\/code> (<code>\u043c\u043e\u0436\u0435\u0442<\/code>). \u041e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u0442\u0438\u043f <code>tril<\/code> (<code>\u0442\u0440\u0438\u043b<\/code>) \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435.<\/p>\n<h4>1.5. \u0412\u0432\u043e\u0434-\u0432\u044b\u0432\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432<\/h4>\n<p>\u0421\u0438\u043c\u0432\u043e\u043b \u0432 \u044f\u0437\u044b\u043a\u0435 T \u2014 \u044d\u0442\u043e <code>tryte<\/code> (<code>\u0442\u0440\u0430\u0439\u0442<\/code>), \u0445\u0440\u0430\u043d\u044f\u0449\u0438\u0439 \u043a\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430. \u0412\u0432\u043e\u0434-\u0432\u044b\u0432\u043e\u0434 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <code>&lt;tio.h&gt;<\/code>: <code>getchar()<\/code> (<code>\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0438\u043c\u0432<\/code>) \u0447\u0438\u0442\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b, <code>putchar(c)<\/code> (<code>\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c\u0441\u0438\u043c\u0432<\/code>) \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442. \u041a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0442\u0440\u0430\u0439\u0442\u043e\u043c <code>0t<\/code>.<\/p>\n<h3>1.5.1. \u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430<\/h3>\n<p>\u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430-\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0447\u0438\u0442\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430 \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u0445 \u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434:<\/p>\n<pre><code>#include &lt;tio.h&gt;tint main() {    tryte c;    while ((c = getchar()) != 0t)   \/\/ 0t \u2014 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430        putchar(c);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 c;    \u043f\u043e\u043a\u0430 ((c = \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0438\u043c\u0432()) != 0t)   \/\/ 0t \u2014 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430        \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c\u0441\u0438\u043c\u0432(c);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>1.5.2. \u041f\u043e\u0434\u0441\u0447\u0451\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432<\/h3>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435:<\/p>\n<pre><code>#include &lt;tio.h&gt;tint main() {    tlong count = 0tl;    while (getchar() != 0t)        count = count + 1tl;    printtlong(count);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0434\u043b\u0438\u043d count = 0tl;    \u043f\u043e\u043a\u0430 (\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0438\u043c\u0432() != 0t)        count = count + 1tl;    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0434\u043b\u0438\u043d(count);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u0443\u0444\u0444\u0438\u043a\u0441 <code>tl<\/code> \u2014 \u043e\u043d \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0442\u0438\u043f <code>tlong<\/code> (<code>\u0442\u0434\u043b\u0438\u043d<\/code>, 18 \u0442\u0440\u0438\u0442\u043e\u0432). \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <code>count<\/code> \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f <code>tlong<\/code>, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0447\u0435\u043c \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 <code>tint<\/code>.<\/p>\n<h3>1.5.3. \u041f\u043e\u0434\u0441\u0447\u0451\u0442 \u0441\u0442\u0440\u043e\u043a<\/h3>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0432\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435. \u0421\u0438\u043c\u0432\u043e\u043b \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u043c\u0435\u0435\u0442 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0440\u0430\u0432\u0435\u043d 10 (\u043a\u0430\u043a \u0438 \u0432 ASCII).<\/p>\n<pre><code>#include &lt;tio.h&gt;tint main() {    tryte c;    tlong lines = 0tl;    while ((c = getchar()) != 0t) {        if (c == 10t)      \/\/ 10t \u2014 \u043a\u043e\u0434 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438            lines = lines + 1tl;    }    printtlong(lines);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 c;    \u0442\u0434\u043b\u0438\u043d lines = 0tl;    \u043f\u043e\u043a\u0430 ((c = \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0438\u043c\u0432()) != 0t) {        \u0435\u0441\u043b\u0438 (c == 10t)      \/\/ 10t \u2014 \u043a\u043e\u0434 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438            lines = lines + 1tl;    }    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0434\u043b\u0438\u043d(lines);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>1.5.4. \u041f\u043e\u0434\u0441\u0447\u0451\u0442 \u0441\u043b\u043e\u0432<\/h3>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043b\u043e\u0432, \u043f\u043e\u043d\u0438\u043c\u0430\u044f \u0441\u043b\u043e\u0432\u043e \u043a\u0430\u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0435\u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u043b\u0430\u0433 <code>inword<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>true<\/code> (<code>\u0438\u0441\u0442\u0438\u043d\u0430<\/code>), \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u043c\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043b\u043e\u0432\u0430.<\/p>\n<pre><code>#include &lt;tio.h&gt;tint main() {    tryte c;    tlong words = 0tl;    tril inword = false;    while ((c = getchar()) != 0t) {        if (c == 10t || c == 32t || c == 9t) {  \/\/ \\n, \u043f\u0440\u043e\u0431\u0435\u043b, \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u044f            inword = false;        } else if (!inword) {            inword = true;            words = words + 1tl;        }    }    printtlong(words);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 c;    \u0442\u0434\u043b\u0438\u043d words = 0tl;    \u0442\u0440\u0438\u043b inword = \u043b\u043e\u0436\u044c;    \u043f\u043e\u043a\u0430 ((c = \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0438\u043c\u0432()) != 0t) {        \u0435\u0441\u043b\u0438 (c == 10t || c == 32t || c == 9t) {  \/\/ \\n, \u043f\u0440\u043e\u0431\u0435\u043b, \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u044f            inword = \u043b\u043e\u0436\u044c;        } \u0438\u043d\u0430\u0447\u0435 \u0435\u0441\u043b\u0438 (!inword) {            inword = \u0438\u0441\u0442\u0438\u043d\u0430;            words = words + 1tl;        }    }    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0434\u043b\u0438\u043d(words);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>1.6. \u041c\u0430\u0441\u0441\u0438\u0432\u044b<\/h4>\n<p>\u041c\u0430\u0441\u0441\u0438\u0432\u044b \u0432 T \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0432 C: <code>\u0442\u0438\u043f \u0438\u043c\u044f[\u0440\u0430\u0437\u043c\u0435\u0440]<\/code>. \u0418\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043d\u0443\u043b\u044f.<\/p>\n<pre><code>#include &lt;tio.h&gt;tint main() {    tryte digits[10];    for (tryte i = 0t; i &lt; 10t; i = i + 1t)        digits[i] = i;    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 digits[10];    \u0434\u043b\u044f (\u0442\u0440\u0430\u0439\u0442 i = 0t; i &lt; 10t; i = i + 1t)        digits[i] = i;    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u044b\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c. \u0418\u043c\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u043c \u043d\u0430 \u0435\u0433\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 \u0433\u043b\u0430\u0432\u0435 5).<\/p>\n<h4>1.7. \u0424\u0443\u043d\u043a\u0446\u0438\u0438<\/h4>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 T \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0432 C. \u0422\u0438\u043f \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c: <code>tint<\/code> (<code>\u0442\u0446\u0435\u043b<\/code>), <code>tril<\/code> (<code>\u0442\u0440\u0438\u043b<\/code>), <code>tfloat<\/code> (<code>\u0442\u0432\u0435\u0449<\/code>), <code>void<\/code> (<code>\u043f\u0443\u0441\u0442\u043e<\/code>) \u0438 \u0442.\u0434. \u0415\u0441\u043b\u0438 \u0442\u0438\u043f \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f <code>tint<\/code>.<\/p>\n<pre><code>tryte add(tryte x, tryte y) {    return x + y;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0440\u0430\u0439\u0442 \u0441\u043b\u043e\u0436\u0438\u0442\u044c(\u0442\u0440\u0430\u0439\u0442 x, \u0442\u0440\u0430\u0439\u0442 y) {    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 x + y;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0430 \u0434\u043e \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f (\u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f):<\/p>\n<pre><code>tryte add(tryte x, tryte y);   \/\/ \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043ftint main() {    tryte s = add(3t, 4t);    return 0t;}tryte add(tryte x, tryte y) {    return x + y;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0440\u0430\u0439\u0442 \u0441\u043b\u043e\u0436\u0438\u0442\u044c(\u0442\u0440\u0430\u0439\u0442 x, \u0442\u0440\u0430\u0439\u0442 y);   \/\/ \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 s = \u0441\u043b\u043e\u0436\u0438\u0442\u044c(3t, 4t);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}\u0442\u0440\u0430\u0439\u0442 \u0441\u043b\u043e\u0436\u0438\u0442\u044c(\u0442\u0440\u0430\u0439\u0442 x, \u0442\u0440\u0430\u0439\u0442 y) {    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 x + y;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>1.8. \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b. \u0412\u044b\u0437\u043e\u0432 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e<\/h4>\n<p>\u0412\u0441\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432 T \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e: \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043a\u043e\u043f\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b. \u0427\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (\u0441\u043c. \u0433\u043b\u0430\u0432\u0443 5).<\/p>\n<pre><code>void increment(tryte *p) {    *p = *p + 1t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u043f\u0443\u0441\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c(\u0442\u0440\u0430\u0439\u0442 *p) {    *p = *p + 1t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>1.9. \u0421\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b<\/h4>\n<p>\u0421\u0442\u0440\u043e\u043a\u0438 \u0432 T \u2014 \u044d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u044b <code>tryte<\/code> (<code>\u0442\u0440\u0430\u0439\u0442<\/code>), \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0442\u0440\u0430\u0439\u0442\u043e\u043c <code>0t<\/code>. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 <code>&lt;tstring.h&gt;<\/code>.<\/p>\n<pre><code>#include &lt;tstring.h&gt;#include &lt;tio.h&gt;tint main() {    tryte str[] = \"\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, T!\";    tlong len = tstrlen(str);    printtlong(len);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tstring.h&gt;#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 str[] = \"\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, T!\";    \u0442\u0434\u043b\u0438\u043d len = \u0442\u0434\u043b\u0438\u043d\u0430\u0441\u0442\u0440(str);    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0434\u043b\u0438\u043d(len);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>1.10. \u0412\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438<\/h4>\n<p>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u0432\u0438\u0434\u0438\u043c\u044b \u0432\u043e \u0432\u0441\u0451\u043c \u0444\u0430\u0439\u043b\u0435 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0447\u043a\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f. \u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <code>extern<\/code> (<code>\u0432\u043d\u0435\u0448<\/code>) \u0434\u0430\u0451\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0444\u0430\u0439\u043b\u0435.<\/p>\n<pre><code>\/\/ file1.ttint global_counter = 0t;\/\/ file2.textern tint global_counter;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\/\/ file1.t\u0442\u0446\u0435\u043b global_counter = 0t;\/\/ file2.t\u0432\u043d\u0435\u0448 \u0442\u0446\u0435\u043b global_counter;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 (\u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c <code>static<\/code> \/ <code>\u0441\u0442\u0430\u0442\u0438\u0447<\/code>) \u0432\u0438\u0434\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/p>\n<h3>2. \u0422\u0438\u043f\u044b, \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0433\u043b\u0430\u0432\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430 T, \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u0437\u0430\u043f\u0438\u0441\u0438 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442, \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 T \u2014 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u044f\u0437\u044b\u043a, \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u0438\u0437 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0433\u043e \u043c\u0438\u0440\u0430 C \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0430\u044e\u0442 \u043d\u043e\u0432\u043e\u0435 \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u0435.<\/p>\n<h4>2.1. \u0418\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445<\/h4>\n<p>\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b (\u0438\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439) \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0438\u0437 \u0431\u0443\u043a\u0432, \u0446\u0438\u0444\u0440 \u0438 \u0437\u043d\u0430\u043a\u0430 \u043f\u043e\u0434\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f <em>. \u041f\u0435\u0440\u0432\u044b\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0431\u0443\u043a\u0432\u0430 \u0438\u043b\u0438 <\/em>. \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0438\u0435 (<code>A<\/code>\u2013<code>Z<\/code>, <code>a<\/code>\u2013<code>z<\/code>), \u0442\u0430\u043a \u0438 \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 (<code>\u0410<\/code>\u2013<code>\u042f<\/code>, <code>\u0430<\/code>\u2013<code>\u044f<\/code>, <code>\u0401<\/code>, <code>\u0451<\/code>) \u0431\u0443\u043a\u0432\u044b. \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0445 \u0438\u043c\u0451\u043d:<\/p>\n<pre><code>\u0441\u0447\u0451\u0442\u0447\u0438\u043a    myVar    _trit    temp_value    \u0414\u043b\u0438\u043d\u0430\u0421\u0442\u0440\u043e\u043a\u0438<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>2.2. \u0422\u0438\u043f\u044b \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>\u0412 \u044f\u0437\u044b\u043a\u0435 T \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0442\u0438\u043f\u043e\u0432:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0422\u0438\u043f<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0422\u0440\u0438\u0442\u043e\u0432<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0422\u0440\u0430\u0439\u0442\u043e\u0432<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0414\u0438\u0430\u043f\u0430\u0437\u043e\u043d (\u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439)<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>trit<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2014<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u20131, 0, +1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tryte<\/code>, <code>tint<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">9<\/p>\n<\/td>\n<td>\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u20139\u202f841 \u2026 +9\u202f841<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tlong<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">18<\/p>\n<\/td>\n<td>\n<p align=\"left\">2<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2013193\u202f710\u202f244 \u2026 +193\u202f710\u202f244<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tlong long<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">27<\/p>\n<\/td>\n<td>\n<p align=\"left\">3<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u20133\u202f812\u202f798\u202f742\u202f493 \u2026 +3\u202f812\u202f798\u202f742\u202f493<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tfloat<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">18<\/p>\n<\/td>\n<td>\n<p align=\"left\">2<\/p>\n<\/td>\n<td>\n<p align=\"left\">6 \u0442\u0440\u0438\u0442\u043e\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0430, 12 \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u044b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tdouble<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">36<\/p>\n<\/td>\n<td>\n<p align=\"left\">4<\/p>\n<\/td>\n<td>\n<p align=\"left\">8 \u0442\u0440\u0438\u0442\u043e\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0430, 28 \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u044b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tril<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2014<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>true<\/code>, <code>maybe<\/code>, <code>false<\/code><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<ul>\n<li>\n<p><code>trit<\/code> \u2014 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 \u0442\u0440\u0438\u0442 (\u20131, 0, +1). \u0412 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e <code>tint<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>tryte<\/code> \u0438 <code>tint<\/code> \u2014 \u0441\u0438\u043d\u043e\u043d\u0438\u043c\u044b, \u043e\u0431\u0430 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0432 9 \u0442\u0440\u0438\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><code>tfloat<\/code> \u2014 \u0442\u0440\u043e\u0438\u0447\u043d\u0430\u044f \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0430\u044f \u0442\u043e\u0447\u043a\u0430 (2 \u0442\u0440\u0430\u0439\u0442\u0430), <code>tdouble<\/code> \u2014 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u0430\u044f \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c (4 \u0442\u0440\u0430\u0439\u0442\u0430).<\/p>\n<\/li>\n<li>\n<p><code>tril<\/code> \u2014 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0440\u0438\u0442 \u0434\u043b\u044f \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <code>sizeof<\/code> (<code>\u0440\u0430\u0437\u043c\u0435\u0440<\/code>) \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u0432 \u0442\u0440\u0430\u0439\u0442\u0430\u0445:<\/p>\n<pre><code>sizeof(tryte)   == 1sizeof(tlong)   == 2sizeof(tdouble) == 4<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0440\u0430\u0437\u043c\u0435\u0440(\u0442\u0440\u0430\u0439\u0442)   == 1\u0440\u0430\u0437\u043c\u0435\u0440(\u0442\u0434\u043b\u0438\u043d)   == 2\u0440\u0430\u0437\u043c\u0435\u0440(\u0442\u0434\u0432\u043e\u0439\u043d)  == 4<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>2.3. \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/h4>\n<p>\u0412 \u044f\u0437\u044b\u043a\u0435 T \u0447\u0435\u0442\u044b\u0440\u0435 \u0432\u0438\u0434\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442: \u0446\u0435\u043b\u044b\u0435, \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435, \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u0438 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435.<\/p>\n<p><strong>\u0426\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/strong> \u0431\u044b\u0432\u0430\u044e\u0442 \u0442\u0440\u0451\u0445 \u0444\u043e\u0440\u043c:<\/p>\n<ol>\n<li>\n<p><strong>\u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0435<\/strong> \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0445 \u0446\u0438\u0444\u0440 \u0441 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u043e\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u0430:<\/p>\n<ul>\n<li>\n<p><code>t<\/code> \u2014 <code>tint<\/code> (9 \u0442\u0440\u0438\u0442\u043e\u0432): <code>42t<\/code>, <code>-100t<\/code>, <code>0t<\/code><\/p>\n<\/li>\n<li>\n<p><code>tl<\/code> \u2014 <code>tlong<\/code> (18 \u0442\u0440\u0438\u0442\u043e\u0432): <code>1000tl<\/code>, <code>-500000tl<\/code><\/p>\n<\/li>\n<li>\n<p><code>tll<\/code> \u2014 <code>tlong long<\/code> (27 \u0442\u0440\u0438\u0442\u043e\u0432): <code>1000000tll<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0421\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0435<\/strong> \u2014 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 <code>0t<\/code>, \u0437\u0430\u0442\u0435\u043c \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0435 \u0446\u0438\u0444\u0440\u044b <code>-<\/code>, <code>0<\/code>, <code>+<\/code>:<\/p>\n<ul>\n<li>\n<p><code>0t+-0_+-0<\/code> \u2014 9 \u0442\u0440\u0438\u0442\u043e\u0432 \u0441 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 <code>_<\/code><\/p>\n<\/li>\n<li>\n<p><code>0t+++_+++_+++<\/code> \u2014 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>tint<\/code> (+9841)<\/p>\n<\/li>\n<li>\n<p><code>0t---_---_---<\/code> \u2014 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>tint<\/code> (\u20139841)<\/p>\n<\/li>\n<li>\n<p><code>0t0<\/code> \u2014 \u044f\u0432\u043d\u044b\u0439 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u043d\u043e\u043b\u044c \u0442\u0438\u043f\u0430 <code>tint<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>27-\u0440\u0438\u0447\u043d\u044b\u0435 (tryx)<\/strong> \u2014 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 <code>0y<\/code>, \u0437\u0430\u0442\u0435\u043c 3, 6 \u0438\u043b\u0438 9 \u0446\u0438\u0444\u0440 <code>0<\/code>\u2013<code>9<\/code>, <code>A<\/code>\u2013<code>Q<\/code>:<\/p>\n<ul>\n<li>\n<p><code>0yDDD<\/code> \u2014 \u043d\u043e\u043b\u044c<\/p>\n<\/li>\n<li>\n<p><code>0yQQQ<\/code> \u2014 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>tint<\/code> (+9841)<\/p>\n<\/li>\n<li>\n<p><code>0y000<\/code> \u2014 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>tint<\/code> (\u20139841)<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/strong> \u0442\u0430\u043a\u0436\u0435 \u0431\u044b\u0432\u0430\u044e\u0442 \u0434\u0432\u0443\u0445 \u0444\u043e\u0440\u043c:<\/p>\n<ol>\n<li>\n<p><strong>\u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c<\/strong> \u2014 \u0446\u0435\u043b\u0430\u044f \u0438 \u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0447\u043a\u0443, \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430 <code>e<\/code>:<\/p>\n<ul>\n<li>\n<p><code>3.14<\/code> (\u0442\u0438\u043f <code>tdouble<\/code>), <code>-0.001f<\/code> (\u0442\u0438\u043f <code>tfloat<\/code>), <code>1.0e+2d<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0422\u0440\u043e\u0438\u0447\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c<\/strong> \u2014 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 <code>0t<\/code>, \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u0430 \u0441 \u0442\u043e\u0447\u043a\u043e\u0439, \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043f\u043e\u0441\u043b\u0435 <code>e<\/code>:<\/p>\n<ul>\n<li>\n<p><code>0t+.-0+0e+0f<\/code> \u2014 <code>tfloat<\/code><\/p>\n<\/li>\n<li>\n<p><code>0t-.0++_---e-+d<\/code> \u2014 <code>tdouble<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>\u0421\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/strong> \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438:<\/p>\n<ul>\n<li>\n<p><code>'+'<\/code>, <code>'0'<\/code>, <code>'-'<\/code> \u0438\u043c\u0435\u044e\u0442 \u0442\u0438\u043f <code>trit<\/code> \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f +1, 0, \u20131 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p>\u041b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>'A'<\/code>) \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f <code>tint<\/code> \u0438 \u0445\u0440\u0430\u043d\u0438\u0442 \u0435\u0433\u043e \u043a\u043e\u0434.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0421\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/strong> \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0434\u0432\u043e\u0439\u043d\u044b\u0445 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445, \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c\u0430\u044f \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0442\u0440\u0430\u0439\u0442\u043e\u043c <code>0t<\/code>:<\/p>\n<pre><code>\"\u0442\u0435\u043a\u0441\u0442\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/strong> \u2014 <code>true<\/code> (<code>\u0438\u0441\u0442\u0438\u043d\u0430<\/code>), <code>false<\/code> (<code>\u043b\u043e\u0436\u044c<\/code>), <code>maybe<\/code> (<code>\u043c\u043e\u0436\u0435\u0442<\/code>). \u0418\u043c\u0435\u044e\u0442 \u0442\u0438\u043f <code>tril<\/code>.<\/p>\n<h4>2.4. \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f<\/h4>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0442\u0438\u043f\u0430 \u0438 \u0438\u043c\u0435\u043d\u0438. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u0432 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0438:<\/p>\n<pre><code>tint a;tril flag = true;tfloat pi = 3.14f;tryte name[] = \"T\";<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b a;\u0442\u0440\u0438\u043b flag = \u0438\u0441\u0442\u0438\u043d\u0430;\u0442\u0432\u0435\u0449 pi = 3.14f;\u0442\u0440\u0430\u0439\u0442 name[] = \"T\";<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430:<\/p>\n<pre><code>tint x, y, z;tlong big = 1000tl, small = -1tl;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b x, y, z;\u0442\u0434\u043b\u0438\u043d big = 1000tl, small = -1tl;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>2.5. \u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b<\/h4>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b: <code>+<\/code>, <code>-<\/code>, <code>*<\/code>, <code>\/<\/code>, <code>%<\/code>. \u041e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u0441 \u0446\u0435\u043b\u044b\u043c\u0438, \u0442\u0430\u043a \u0438 \u0441 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438 (\u043a\u0440\u043e\u043c\u0435 <code>%<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0446\u0435\u043b\u044b\u0445).<\/p>\n<p>\u0426\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043d\u0438\u0437 (\u043a \u2013\u221e). \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code> 5t \/ 3t  ==  1t    \/\/  5 = 1*3 + 2-5t \/ 3t  == -2t    \/\/ -5 = -2*3 + 1 5t \/ -3t == -2t    \/\/  5 = -2*(-3) + (-1)-5t \/ -3t ==  1t    \/\/ -5 = 1*(-3) + (-2)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0441\u0442\u0430\u0442\u043e\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0435\u0442 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0443 <code>(a\/b)*b + a%b == a<\/code>.<\/p>\n<h4>2.6. \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u0438 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b<\/h4>\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f (<code>&lt;<\/code>, <code>&gt;<\/code>, <code>&lt;=<\/code>, <code>&gt;=<\/code>, <code>==<\/code>, <code>!=<\/code>) \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e\u0442 \u0447\u0438\u0441\u043b\u0430 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0442\u0438\u043f\u0430 <code>tril<\/code>:<\/p>\n<ul>\n<li>\n<p><code>true<\/code> (+1) \u2014 \u0435\u0441\u043b\u0438 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0438\u0441\u0442\u0438\u043d\u043d\u043e<\/p>\n<\/li>\n<li>\n<p><code>false<\/code> (\u20131) \u2014 \u0435\u0441\u043b\u0438 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043b\u043e\u0436\u043d\u043e<\/p>\n<\/li>\n<li>\n<p><code>maybe<\/code> (0) \u2014 \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u0440\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0447\u0438\u0441\u0435\u043b, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 <code>tril<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b <code>&amp;&amp;<\/code> (\u0418) \u0438 <code>||<\/code> (\u0418\u041b\u0418) \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443:<\/p>\n<ul>\n<li>\n<p><code>a &amp;&amp; b<\/code> \u2014 \u043c\u0438\u043d\u0438\u043c\u0443\u043c: <code>true &amp;&amp; maybe == maybe<\/code>, <code>true &amp;&amp; false == false<\/code><\/p>\n<\/li>\n<li>\n<p><code>a <\/code><span class=\"habrahidden\"><code> b<\/code> \u2014 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c: <code>false <\/code><\/span><code> maybe == maybe<\/code>, <code>false || true == true<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0431\u0430 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u0434\u0430 (\u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0433\u043e \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f \u043d\u0435\u0442), \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043d\u0435 \u0434\u043e\u043a\u0430\u0436\u0435\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u0431\u043e\u0447\u043d\u044b\u0445 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432.<\/p>\n<h4>2.7. \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u043e\u0432<\/h4>\n<p><strong>\u041d\u0435\u044f\u0432\u043d\u044b\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/strong><\/p>\n<ul>\n<li>\n<p><code>trit<\/code> \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e <code>tint<\/code> \u0432 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445.<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0446\u0435\u043b\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438 \u043c\u0435\u043d\u044c\u0448\u0438\u0439 \u0442\u0438\u043f \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e: <code>tint<\/code> \u2192 <code>tlong<\/code> \u2192 <code>tlong long<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0426\u0435\u043b\u044b\u0435 \u0442\u0438\u043f\u044b \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438 \u0441\u043c\u0435\u0448\u0430\u043d\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445: <code>tint<\/code> \u2192 <code>tfloat<\/code> \u2192 <code>tdouble<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>tril<\/code> \u043d\u0435\u044f\u0432\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0432 <code>trit<\/code> \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u042f\u0432\u043d\u044b\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f (\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430):<\/strong><\/p>\n<pre><code>tfloat f = (tfloat) a;   \/\/ tint \u2192 tfloattint x = (tint) 3.14;    \/\/ tdouble \u2192 tint (\u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0432\u0435\u0449 f = (\u0442\u0432\u0435\u0449) a;   \/\/ \u0442\u0446\u0435\u043b \u2192 \u0442\u0432\u0435\u0449\u0442\u0446\u0435\u043b x = (\u0442\u0446\u0435\u043b) 3.14;    \/\/ \u0442\u0434\u0432\u043e\u0439\u043d \u2192 \u0442\u0446\u0435\u043b (\u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0438 \u0431\u043e\u043b\u0435\u0435 \u0448\u0438\u0440\u043e\u043a\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0443\u0437\u043a\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443\u0441\u0435\u043a\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0442\u0440\u0438\u0442\u043e\u0432. \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439.<\/p>\n<h4>2.8. \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430 \u0438 \u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430<\/h4>\n<p>\u041f\u0440\u0435\u0444\u0438\u043a\u0441\u043d\u044b\u0435 \u0438 \u043f\u043e\u0441\u0442\u0444\u0438\u043a\u0441\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b <code>++<\/code> \u0438 <code>--<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u0432 C:<\/p>\n<pre><code>tint x = 5t;tint y = x++;   \/\/ y = 5, x = 6tint z = ++x;   \/\/ z = 7, x = 7<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b x = 5t;\u0442\u0446\u0435\u043b y = x++;   \/\/ y = 5, x = 6\u0442\u0446\u0435\u043b z = ++x;   \/\/ z = 7, x = 7<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\/\u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442 \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u0430\u0434\u0440\u0435\u0441 \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 \u0442\u0440\u0430\u0439\u0442\u0430\u0445.<\/p>\n<h4>2.9. \u041f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b<\/h4>\n<p>\u041f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0442\u0440\u0438\u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0430 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e:<\/p>\n<ul>\n<li>\n<p><code><strong>&amp;<\/strong><\/code><strong> \u2014 \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c:<\/strong> \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0440\u0438\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0440\u0430\u0432\u0435\u043d \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0443 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0442\u0440\u0438\u0442\u043e\u0432 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u043e\u0432.<\/p>\n<pre><code>+ &amp; 0 = 0    + &amp; - = -    0 &amp; - = -<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/li>\n<li>\n<p><code><strong>|<\/strong><\/code><strong> \u2014 \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c:<\/strong> \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0440\u0438\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0440\u0430\u0432\u0435\u043d \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0443.<\/p>\n<pre><code>+ | 0 = +    + | - = +    0 | - = 0<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/li>\n<li>\n<p><code><strong>^<\/strong><\/code><strong> \u2014 \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e 3 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430:<\/strong><\/p>\n<pre><code>+ ^ + = -    (1 + 1 = 2 \u2192 -1)- ^ - = +    (-1 + -1 = -2 \u2192 +1)+ ^ 0 = +    + ^ - = 0<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/li>\n<li>\n<p><code><strong>~<\/strong><\/code><strong> \u2014 \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u043e\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435:<\/strong> \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0440\u0438\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u0437\u043d\u0430\u043a.<\/p>\n<pre><code>~+ = -    ~- = +    ~0 = 0<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0446\u0435\u043b\u044b\u043c \u0442\u0438\u043f\u0430\u043c.<\/p>\n<h4>2.10. \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f<\/h4>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435: <code>a = b<\/code>. \u0421\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f:<\/p>\n<pre><code>a += b    \/\/ a = a + ba -= b    \/\/ a = a - ba *= b    \/\/ a = a * ba \/= b    \/\/ a = a \/ ba %= b    \/\/ a = a % ba &lt;&lt;= b   \/\/ a = a &lt;&lt; ba &gt;&gt;= b   \/\/ a = a &gt;&gt; ba &amp;= b    \/\/ a = a &amp; ba |= b    \/\/ a = a | ba ^= b    \/\/ a = a ^ b<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>2.11. \u0423\u0441\u043b\u043e\u0432\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>\u0422\u0440\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u2014 \u043e\u0434\u043d\u043e \u0438\u0437 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u043e\u0442\u043b\u0438\u0447\u0438\u0439 T \u043e\u0442 C. \u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u0438\u0437 \u0442\u0440\u0451\u0445 \u0432\u0435\u0442\u0432\u0435\u0439 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f:<\/p>\n<pre><code>\u0443\u0441\u043b\u043e\u0432\u0438\u0435 ?? \u0432\u044b\u0440\u0430\u0436_\u0438\u0441\u0442\u0438\u043d\u0430 :? \u0432\u044b\u0440\u0430\u0436_\u043c\u043e\u0436\u0435\u0442 :! \u0432\u044b\u0440\u0430\u0436_\u043b\u043e\u0436\u044c<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code>tril flag = maybe;tryte x = (flag == true) ?? 10t :? 0t :! -10t;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0440\u0438\u043b flag = \u043c\u043e\u0436\u0435\u0442;\u0442\u0440\u0430\u0439\u0442 x = (flag == \u0438\u0441\u0442\u0438\u043d\u0430) ?? 10t :? 0t :! -10t;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u0441\u0435 \u0442\u0440\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f. \u0422\u0438\u043f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u2014 \u043e\u0431\u0449\u0438\u0439 \u0442\u0438\u043f \u0442\u0440\u0451\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439. \u041e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u0435\u0442\u0432\u044c \u043d\u0435\u043b\u044c\u0437\u044f.<\/p>\n<h4>2.12. \u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439<\/h4>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u0430 (\u0432\u044b\u0441\u0448\u0438\u0439 \u2014 \u043f\u0435\u0440\u0432\u044b\u0439):<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0410\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>++<\/code> <code>--<\/code> (\u043f\u043e\u0441\u0442\u0444\u0438\u043a\u0441\u043d\u044b\u0435) <code>()<\/code> <code>[]<\/code> <code>.<\/code> <code>-&gt;<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192 (\u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">2<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>++<\/code> <code>--<\/code> (\u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043d\u044b\u0435) <code>+<\/code> <code>-<\/code> <code>!<\/code> <code>~<\/code> <code>*<\/code> <code>&amp;<\/code> <code>sizeof<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2190 (\u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">3<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>*<\/code> <code>\/<\/code> <code>%<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">4<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>+<\/code> <code>-<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">5<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>&lt;&lt;<\/code> <code>&gt;&gt;<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">6<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>&lt;<\/code> <code>&gt;<\/code> <code>&lt;=<\/code> <code>&gt;=<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">7<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>==<\/code> <code>!=<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">8<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>&amp;<\/code> (\u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">9<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>^<\/code> (\u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u0430\u044f \u0441\u0443\u043c\u043c\u0430)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">10<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>|<\/code> (\u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">11<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>&amp;&amp;<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">12<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>||<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">13<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>??<\/code> <code>:?<\/code> <code>:!<\/code> (\u0442\u0440\u0438\u043d\u0430\u0440\u043d\u044b\u0439)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2190<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">14<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>=<\/code> <code>+=<\/code> <code>-=<\/code> <code>*=<\/code> <code>\/=<\/code> <code>%=<\/code> <code>&lt;&lt;=<\/code> <code>&gt;&gt;=<\/code> <code>&amp;=<\/code> <code>^=<\/code> <code>|=<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2190<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c\u044e. \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d (\u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 <code>&amp;&amp;<\/code>, <code>||<\/code>, <code>??:?:!<\/code> \u0438 <code>,<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u044e\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e).<\/p>\n<h3>3. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043d\u0430 T \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u043c\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438: \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438, \u0446\u0438\u043a\u043b\u0430\u043c\u0438 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430\u043c\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0433\u043b\u0430\u0432\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u044b\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f, \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0449\u0438\u0435 T \u043e\u0442 C.<\/p>\n<h4>3.1. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0438 \u0431\u043b\u043e\u043a\u0438<\/h4>\n<p>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u2014 \u044d\u0442\u043e \u043b\u0438\u0431\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d\u043d\u043e\u0435 \u0442\u043e\u0447\u043a\u043e\u0439 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439, \u043b\u0438\u0431\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f. \u0411\u043b\u043e\u043a \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 (\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439), \u0437\u0430\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u0430\u044f \u0432 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0435 \u0441\u043a\u043e\u0431\u043a\u0438 <code>{ }<\/code>. \u0411\u043b\u043e\u043a \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0435\u0434\u0438\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f.<\/p>\n<pre><code>{    tint x = 5t;    x = x + 1t;    printtryte(x);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>{    \u0442\u0446\u0435\u043b x = 5t;    x = x + 1t;    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(x);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>3.2. \u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f if-else<\/h4>\n<p>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 <code>if-else<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0432 C:<\/p>\n<pre><code>if (a &gt; b)    print(\"\u0431\u043e\u043b\u044c\u0448\u0435\\n\");else    print(\"\u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435\\n\");<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0435\u0441\u043b\u0438 (a &gt; b)    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u0431\u043e\u043b\u044c\u0448\u0435\\n\");\u0438\u043d\u0430\u0447\u0435    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435\\n\");<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 T \u0432\u0435\u0442\u0432\u044c <code>maybe<\/code> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e <code>else<\/code>:<\/p>\n<pre><code>if (condition)    print(\"\u0438\u0441\u0442\u0438\u043d\u0430\\n\");maybe    print(\"\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c\\n\");else    print(\"\u043b\u043e\u0436\u044c\\n\");<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0435\u0441\u043b\u0438 (condition)    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u0438\u0441\u0442\u0438\u043d\u0430\\n\");\u043c\u043e\u0436\u0435\u0442    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c\\n\");\u0438\u043d\u0430\u0447\u0435    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043b\u043e\u0436\u044c\\n\");<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0438\u043b\u0438:<\/p>\n<pre><code>if (condition)    print(\"\u0438\u0441\u0442\u0438\u043d\u0430\\n\");else    print(\"\u043b\u043e\u0436\u044c\\n\");maybe    print(\"\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c\\n\");<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0435\u0441\u043b\u0438 (condition)    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u0438\u0441\u0442\u0438\u043d\u0430\\n\");\u0438\u043d\u0430\u0447\u0435    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043b\u043e\u0436\u044c\\n\");\u043c\u043e\u0436\u0435\u0442    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c\\n\");<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0435\u0442\u0432\u044c <code>maybe<\/code> \u043e\u043f\u0443\u0449\u0435\u043d\u0430, \u0442\u043e \u043f\u0440\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f <code>maybe<\/code> \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043f\u043e\u0441\u043b\u0435 <code>if<\/code> \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 (\u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f).<\/p>\n<h4>3.3. \u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f else-if<\/h4>\n<p>\u0426\u0435\u043f\u043e\u0447\u043a\u0438 <code>else-if<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u0441\u0442\u0443\u043f\u0435\u043d\u0447\u0430\u0442\u044b\u0439 \u0432\u044b\u0431\u043e\u0440:<\/p>\n<pre><code>tint score = 75t;if (score &gt;= 90t)    print(\"\u043e\u0442\u043b\u0438\u0447\u043d\u043e\\n\");else if (score &gt;= 70t)    print(\"\u0445\u043e\u0440\u043e\u0448\u043e\\n\");else if (score &gt;= 50t)    print(\"\u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\\n\");else    print(\"\u043d\u0435\u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\\n\");<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b score = 75t;\u0435\u0441\u043b\u0438 (score &gt;= 90t)    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043e\u0442\u043b\u0438\u0447\u043d\u043e\\n\");\u0438\u043d\u0430\u0447\u0435 \u0435\u0441\u043b\u0438 (score &gt;= 70t)    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u0445\u043e\u0440\u043e\u0448\u043e\\n\");\u0438\u043d\u0430\u0447\u0435 \u0435\u0441\u043b\u0438 (score &gt;= 50t)    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\\n\");\u0438\u043d\u0430\u0447\u0435    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043d\u0435\u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\\n\");<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 <code>maybe<\/code>:<\/p>\n<pre><code>tril flag = maybe;if (flag == true)    print(\"\u0434\u0430\\n\");else if (flag == maybe)    print(\"\u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\\n\");else    print(\"\u043d\u0435\u0442\\n\");<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0440\u0438\u043b flag = \u043c\u043e\u0436\u0435\u0442;\u0435\u0441\u043b\u0438 (flag == \u0438\u0441\u0442\u0438\u043d\u0430)    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u0434\u0430\\n\");\u0438\u043d\u0430\u0447\u0435 \u0435\u0441\u043b\u0438 (flag == \u043c\u043e\u0436\u0435\u0442)    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\\n\");\u0438\u043d\u0430\u0447\u0435    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043d\u0435\u0442\\n\");<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>3.4. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c switch<\/h4>\n<p><code>switch<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0432 C. \u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c (\u0442\u0438\u043f\u0430 <code>tint<\/code>, <code>tlong<\/code> \u0438 \u0442.\u0434.). \u041c\u0435\u0442\u043a\u0438 <code>case<\/code> \u2014 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b.<\/p>\n<pre><code>switch (trit_value) {    case -1: print(\"-\"); break;    case 0:  print(\"0\"); break;    case 1:  print(\"+\"); break;    default: print(\"?\");}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c (trit_value) {    \u0441\u043b\u0443\u0447\u0430\u0439 -1: \u043f\u0435\u0447\u0430\u0442\u044c(\"-\"); \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c;    \u0441\u043b\u0443\u0447\u0430\u0439 0:  \u043f\u0435\u0447\u0430\u0442\u044c(\"0\"); \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c;    \u0441\u043b\u0443\u0447\u0430\u0439 1:  \u043f\u0435\u0447\u0430\u0442\u044c(\"+\"); \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c;    \u043f\u043e\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e: \u043f\u0435\u0447\u0430\u0442\u044c(\"?\");}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0438\u043f <code>tril<\/code> \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 <code>switch<\/code> \u2014 \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u044f\u0432\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0446\u0435\u043b\u043e\u0435.<\/p>\n<h4>3.5. \u0426\u0438\u043a\u043b\u044b while \u0438 for<\/h4>\n<p>\u0426\u0438\u043a\u043b <code>while<\/code> \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u0442\u0435\u043b\u043e, \u043f\u043e\u043a\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0440\u0430\u0432\u043d\u043e <code>true<\/code>. \u041f\u0440\u0438 <code>maybe<\/code> \u0438\u043b\u0438 <code>false<\/code> \u0446\u0438\u043a\u043b \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<pre><code>tint i = 0t;while (i &lt; 10t) {    printbal(i);    i = i + 1t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b i = 0t;\u043f\u043e\u043a\u0430 (i &lt; 10t) {    \u043f\u0435\u0447\u0430\u0442\u044c\u0431\u0430\u043b(i);    i = i + 1t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0426\u0438\u043a\u043b <code>for<\/code> \u2014 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430:<\/p>\n<pre><code>for (tint i = 0t; i &lt; 10t; i = i + 1t)    printbal(i);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0434\u043b\u044f (\u0442\u0446\u0435\u043b i = 0t; i &lt; 10t; i = i + 1t)    \u043f\u0435\u0447\u0430\u0442\u044c\u0431\u0430\u043b(i);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u044e\u0431\u0430\u044f \u0438\u0437 \u0442\u0440\u0451\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 <code>for<\/code> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u043f\u0443\u0449\u0435\u043d\u0430. \u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0446\u0438\u043a\u043b:<\/p>\n<pre><code>for (;;)    ...<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0434\u043b\u044f (;;)    ...<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>3.6. \u0426\u0438\u043a\u043b do-while<\/h4>\n<p>\u0426\u0438\u043a\u043b <code>do-while<\/code> \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0442\u0435\u043b\u0430:<\/p>\n<pre><code>tint i = 0t;do {    printbal(i);    i = i + 1t;} while (i &lt; 10t);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b i = 0t;\u0434\u0435\u043b\u0430\u0442\u044c {    \u043f\u0435\u0447\u0430\u0442\u044c\u0431\u0430\u043b(i);    i = i + 1t;} \u043f\u043e\u043a\u0430 (i &lt; 10t);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>3.7. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 break \u0438 continue<\/h4>\n<p><code>break<\/code> \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0446\u0438\u043a\u043b\u0430 \u0438\u043b\u0438 <code>switch<\/code>. <code>continue<\/code> \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u0446\u0438\u043a\u043b\u0430, \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044f \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0442\u0435\u043b\u0430.<\/p>\n<pre><code>for (tint i = 0t; i &lt; 100t; i = i + 1t) {    if (i == 50t)        break;       \/\/ \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0446\u0438\u043a\u043b \u043d\u0430 50    if (i % 3t == 0t)        continue;    \/\/ \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0447\u0451\u0442\u043d\u044b\u0435 (\u0432 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435)    printbal(i);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0434\u043b\u044f (\u0442\u0446\u0435\u043b i = 0t; i &lt; 100t; i = i + 1t) {    \u0435\u0441\u043b\u0438 (i == 50t)        \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c;       \/\/ \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0446\u0438\u043a\u043b \u043d\u0430 50    \u0435\u0441\u043b\u0438 (i % 3t == 0t)        \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c;     \/\/ \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0447\u0451\u0442\u043d\u044b\u0435 (\u0432 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435)    \u043f\u0435\u0447\u0430\u0442\u044c\u0431\u0430\u043b(i);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>3.8. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f goto \u0438 \u043c\u0435\u0442\u043a\u0438<\/h4>\n<p><code>goto<\/code> \u0438 \u043c\u0435\u0442\u043a\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f, \u043d\u043e \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e\u0442\u0441\u044f \u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e. \u041c\u0435\u0442\u043a\u0430 \u2014 \u044d\u0442\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435.<\/p>\n<pre><code>tint i = 0t;loop:    if (i &gt;= 10t) goto end;    printbal(i);    i = i + 1t;    goto loop;end:    return 0t;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b i = 0t;\u043c\u0435\u0442\u043a\u0430:    \u0435\u0441\u043b\u0438 (i &gt;= 10t) \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a\u043e\u043d\u0435\u0446;    \u043f\u0435\u0447\u0430\u0442\u044c\u0431\u0430\u043b(i);    i = i + 1t;    \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043c\u0435\u0442\u043a\u0430;\u043a\u043e\u043d\u0435\u0446:    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>4. \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h3>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 T. \u0412 \u044d\u0442\u043e\u0439 \u0433\u043b\u0430\u0432\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043a\u043b\u0430\u0441\u0441\u044b \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440.<\/p>\n<h4>4.1. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445<\/h4>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0432 T \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0442\u0438\u043f\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430, \u0438\u043c\u0435\u043d\u0438, \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0442\u0435\u043b\u0430:<\/p>\n<pre><code>tint square(tint x) {    return x * x;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b \u043a\u0432\u0430\u0434\u0440\u0430\u0442(\u0442\u0446\u0435\u043b x) {    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 x * x;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u0438\u043f <code>void<\/code> (<code>\u043f\u0443\u0441\u0442\u043e<\/code>):<\/p>\n<pre><code>void print_hello() {    print(\"\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, T!\\n\");}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u043f\u0443\u0441\u0442\u043e \u043f\u0435\u0447\u0430\u0442\u044c_\u043f\u0440\u0438\u0432\u0435\u0442() {    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, T!\\n\");}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u0434\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f:<\/p>\n<pre><code>tint square(tint x);   \/\/ \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043ftint main() {    return square(5t);}tint square(tint x) {    return x * x;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b \u043a\u0432\u0430\u0434\u0440\u0430\u0442(\u0442\u0446\u0435\u043b x);   \/\/ \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u043a\u0432\u0430\u0434\u0440\u0430\u0442(5t);}\u0442\u0446\u0435\u043b \u043a\u0432\u0430\u0434\u0440\u0430\u0442(\u0442\u0446\u0435\u043b x) {    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 x * x;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>4.2. \u0424\u0443\u043d\u043a\u0446\u0438\u0438, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0438\u0435 \u043d\u0435\u0446\u0435\u043b\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/h4>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0442\u0438\u043f: <code>tfloat<\/code> (<code>\u0442\u0432\u0435\u0449<\/code>), <code>tdouble<\/code> (<code>\u0442\u0434\u0432\u043e\u0439\u043d<\/code>), <code>tril<\/code> (<code>\u0442\u0440\u0438\u043b<\/code>), <code>void<\/code> (<code>\u043f\u0443\u0441\u0442\u043e<\/code>) \u0438 \u0442.\u0434.<\/p>\n<pre><code>tril is_positive(tint x) {    if (x &gt; 0t) return true;    else if (x &lt; 0t) return false;    else return maybe;}tdouble average(tfloat a, tfloat b) {    return (a + b) \/ 2.0f;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0440\u0438\u043b \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435(\u0442\u0446\u0435\u043b x) {    \u0435\u0441\u043b\u0438 (x &gt; 0t) \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0438\u0441\u0442\u0438\u043d\u0430;    \u0438\u043d\u0430\u0447\u0435 \u0435\u0441\u043b\u0438 (x &lt; 0t) \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u043b\u043e\u0436\u044c;    \u0438\u043d\u0430\u0447\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u043c\u043e\u0436\u0435\u0442;}\u0442\u0434\u0432\u043e\u0439\u043d \u0441\u0440\u0435\u0434\u043d\u0435\u0435(\u0442\u0432\u0435\u0449 a, \u0442\u0432\u0435\u0449 b) {    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 (a + b) \/ 2.0f;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>4.3. \u0412\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435<\/h4>\n<p>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0432\u0438\u0434\u043d\u044b \u0432\u043e \u0432\u0441\u0435\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445 \u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0447\u043a\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <code>extern<\/code> (<code>\u0432\u043d\u0435\u0448<\/code>):<\/p>\n<pre><code>\/\/ file1.ttint global_count = 0t;\/\/ file2.textern tint global_count;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\/\/ file1.t\u0442\u0446\u0435\u043b global_count = 0t;\/\/ file2.t\u0432\u043d\u0435\u0448 \u0442\u0446\u0435\u043b global_count;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>4.4. \u041e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438<\/h4>\n<ul>\n<li>\n<p><strong>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435<\/strong> \u2014 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u043b\u0438 \u0431\u043b\u043e\u043a\u0430, \u0432\u0438\u0434\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043d\u0451\u043c.<\/p>\n<\/li>\n<li>\n<p><strong>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435<\/strong> \u2014 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u0432\u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0432\u0438\u0434\u043d\u044b \u0432\u043e \u0432\u0441\u0451\u043c \u0444\u0430\u0439\u043b\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435<\/strong> \u2014 \u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c <code>static<\/code> (<code>\u0441\u0442\u0430\u0442\u0438\u0447<\/code>), \u0432\u0438\u0434\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/strong> \u2014 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<pre><code>tint global = 10t;          \/\/ \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044fstatic tint file_local;     \/\/ \u0432\u0438\u0434\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435void func() {    tint local = 5t;        \/\/ \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f    {        tint inner = 3t;    \/\/ \u0432\u0438\u0434\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u043b\u043e\u043a\u0430    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b global = 10t;            \/\/ \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f\u0441\u0442\u0430\u0442\u0438\u0447 \u0442\u0446\u0435\u043b file_local;       \/\/ \u0432\u0438\u0434\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435\u043f\u0443\u0441\u0442\u043e func() {    \u0442\u0446\u0435\u043b local = 5t;          \/\/ \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f    {        \u0442\u0446\u0435\u043b inner = 3t;      \/\/ \u0432\u0438\u0434\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u043b\u043e\u043a\u0430    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>4.5. \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b<\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0442\u0438\u043f\u043e\u0432 \u0438 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432, \u043e\u0431\u0449\u0438\u0445 \u0434\u043b\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <code>#include<\/code> (<code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c<\/code>):<\/p>\n<pre><code>#include \"myheader.h\"   \/\/ \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u2014 \u043f\u043e\u0438\u0441\u043a \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435#include &lt;tio.h&gt;        \/\/ \u0443\u0433\u043b\u043e\u0432\u044b\u0435 \u0441\u043a\u043e\u0431\u043a\u0438 \u2014 \u043f\u043e\u0438\u0441\u043a \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \"myheader.h\"   \/\/ \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u2014 \u043f\u043e\u0438\u0441\u043a \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;        \/\/ \u0443\u0433\u043b\u043e\u0432\u044b\u0435 \u0441\u043a\u043e\u0431\u043a\u0438 \u2014 \u043f\u043e\u0438\u0441\u043a \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 <code>utils.h<\/code>:<\/p>\n<pre><code>\/\/ utils.h#ifndef UTILS_H#define UTILS_Htint max(tint a, tint b);tint min(tint a, tint b);#define ABS(x) ((x) &lt; 0t ? -(x) : (x))#endif<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\/\/ utils.h#\u0435\u0441\u043b\u0438\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e UTILS_H#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c UTILS_H\u0442\u0446\u0435\u043b \u043c\u0430\u043a\u0441(\u0442\u0446\u0435\u043b a, \u0442\u0446\u0435\u043b b);\u0442\u0446\u0435\u043b \u043c\u0438\u043d(\u0442\u0446\u0435\u043b a, \u0442\u0446\u0435\u043b b);#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c ABS(x) ((x) &lt; 0t ? -(x) : (x))#\u043a\u043e\u043d\u0447\u0438\u0442\u044c<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435:<\/p>\n<pre><code>#include \"utils.h\"tint main() {    tint m = max(10t, 20t);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \"utils.h\"\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0446\u0435\u043b m = \u043c\u0430\u043a\u0441(10t, 20t);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>4.6. \u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435<\/h4>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <code>static<\/code> (<code>\u0441\u0442\u0430\u0442\u0438\u0447<\/code>) \u0438\u043c\u0435\u0435\u0442 \u0434\u0432\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:<\/p>\n<ol>\n<li>\n<p><strong>\u0414\u043b\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/strong> \u2014 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u043c.<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445<\/strong> \u2014 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0432\u044b\u0437\u043e\u0432\u0430\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<\/li>\n<\/ol>\n<pre><code>void counter() {    static tint calls = 0t;   \/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437    calls = calls + 1t;    printtryte(calls);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u043f\u0443\u0441\u0442\u043e \u0441\u0447\u0451\u0442\u0447\u0438\u043a() {    \u0441\u0442\u0430\u0442\u0438\u0447 \u0442\u0446\u0435\u043b calls = 0t;   \/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437    calls = calls + 1t;    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(calls);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>4.7. \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435<\/h4>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <code>register<\/code> (<code>\u0440\u0435\u0433\u0438\u0441\u0442\u0440<\/code>) \u2014 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0443 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0432 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0443.<\/p>\n<pre><code>void fast_sum(tint n) {    register tint acc = 0t;    for (register tint i = 0t; i &lt; n; i = i + 1t)        acc = acc + i;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u043f\u0443\u0441\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u0430\u044f_\u0441\u0443\u043c\u043c\u0430(\u0442\u0446\u0435\u043b n) {    \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0442\u0446\u0435\u043b acc = 0t;    \u0434\u043b\u044f (\u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0442\u0446\u0435\u043b i = 0t; i &lt; n; i = i + 1t)        acc = acc + i;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>4.8. \u0411\u043b\u043e\u0447\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430<\/h4>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u0432 \u043b\u044e\u0431\u043e\u043c \u0431\u043b\u043e\u043a\u0435. \u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0431\u043b\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445:<\/p>\n<pre><code>tint x = 10t;{    tint x = 20t;        \/\/ \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u044e\u044e x    printtryte(x);       \/\/ \u0432\u044b\u0432\u0435\u0434\u0435\u0442 20}printtryte(x);           \/\/ \u0432\u044b\u0432\u0435\u0434\u0435\u0442 10<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b x = 10t;{    \u0442\u0446\u0435\u043b x = 20t;        \/\/ \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u044e\u044e x    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(x);      \/\/ \u0432\u044b\u0432\u0435\u0434\u0435\u0442 20}\u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(x);          \/\/ \u0432\u044b\u0432\u0435\u0434\u0435\u0442 10<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>4.9. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h4>\n<p>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0443\u043b\u0451\u043c (<code>0t<\/code>), \u0435\u0441\u043b\u0438 \u044f\u0432\u043d\u043e \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\u044b. \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u2014 \u0438\u0445 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e.<\/p>\n<pre><code>tint global;             \/\/ 0tstatic tint s;           \/\/ 0tvoid func() {    tint local;          \/\/ \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435!    tint init = 5t;      \/\/ \u044f\u0432\u043d\u0430\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b global;               \/\/ 0t\u0441\u0442\u0430\u0442\u0438\u0447 \u0442\u0446\u0435\u043b s;             \/\/ 0t\u043f\u0443\u0441\u0442\u043e func() {    \u0442\u0446\u0435\u043b local;            \/\/ \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435!    \u0442\u0446\u0435\u043b init = 5t;        \/\/ \u044f\u0432\u043d\u0430\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>4.10. \u0420\u0435\u043a\u0443\u0440\u0441\u0438\u044f<\/h4>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0433\u0443\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b\u0430:<\/p>\n<pre><code>tint factorial(tint n) {    if (n &lt;= 1t)        return 1t;    else        return n * factorial(n - 1t);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b(\u0442\u0446\u0435\u043b n) {    \u0435\u0441\u043b\u0438 (n &lt;= 1t)        \u0432\u043e\u0437\u0432\u0440\u0430\u0442 1t;    \u0438\u043d\u0430\u0447\u0435        \u0432\u043e\u0437\u0432\u0440\u0430\u0442 n * \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b(n - 1t);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>4.11. \u041f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u044f\u0437\u044b\u043a\u0430 T<\/h4>\n<p>\u041f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 T \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u0435\u043d \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0443 C. \u041e\u043d \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 <code>#<\/code>, \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0412\u0441\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0438\u043c\u0435\u044e\u0442 \u0440\u0443\u0441\u0441\u043a\u0438\u0435 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u044b.<\/p>\n<h3>4.11.1. \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430<\/h3>\n<p>\u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 <code>#include<\/code> (<code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c<\/code>) \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code>#include &lt;tio.h&gt;      \/\/ \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a#include \"myheader.h\" \/\/ \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;      \/\/ \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \"myheader.h\" \/\/ \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0438\u0441\u043a \u0444\u0430\u0439\u043b\u0430 \u0432 \u0443\u0433\u043b\u043e\u0432\u044b\u0445 \u0441\u043a\u043e\u0431\u043a\u0430\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u0445, \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445 \u2014 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/p>\n<h3>4.11.2. \u041c\u0430\u043a\u0440\u043e\u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n<p>\u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 <code>#define<\/code> (<code>#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c<\/code>) \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043c\u0430\u043a\u0440\u043e\u0441. \u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u043c\u0430\u043a\u0440\u043e\u0441:<\/p>\n<pre><code>#define MAX 100t<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c MAX 100t<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041c\u0430\u043a\u0440\u043e\u0441 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<\/p>\n<pre><code>#define MAX(A,B) ((A) | (B))   \/\/ \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c#define MIN(A,B) ((A) &amp; (B))   \/\/ \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c#define SQUARE(X) ((X)*(X))<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c MAX(A,B) ((A) | (B))   \/\/ \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c MIN(A,B) ((A) &amp; (B))   \/\/ \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u041a\u0412\u0410\u0414\u0420\u0410\u0422(X) ((X)*(X))<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <code>#<\/code> \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443, <code>##<\/code> \u0441\u043a\u043b\u0435\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043a\u0435\u043d\u044b:<\/p>\n<pre><code>#define STR(X) #X#define CONCAT(A,B) A ## B<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0421\u0422\u0420(X) #X#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0421\u0426\u0415\u041f\u0418\u0422\u042c(A,B) A ## B<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>4.11.3. \u0423\u0441\u043b\u043e\u0432\u043d\u0430\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f<\/h3>\n<p>\u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438: <code>#if<\/code> (<code>#\u0435\u0441\u043b\u0438<\/code>), <code>#ifdef<\/code> (<code>#\u0435\u0441\u043b\u0438\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e<\/code>), <code>#ifndef<\/code> (<code>#\u0435\u0441\u043b\u0438\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e<\/code>), <code>#else<\/code> (<code>#\u0438\u043d\u0430\u0447\u0435<\/code>), <code>#elif<\/code> (<code>#\u0438\u043b\u0438\u0435\u0441\u043b\u0438<\/code>), <code>#endif<\/code> (<code>#\u043a\u043e\u043d\u0447\u0438\u0442\u044c<\/code>).<\/p>\n<pre><code>#define T_VERSION 1t#if T_VERSION &gt;= 2t    \/\/ \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 2 \u0438 \u0432\u044b\u0448\u0435#elif T_VERSION == 1t    \/\/ \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 1#else    \/\/ \u043a\u043e\u0434 \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439#endif#ifdef DEBUG    print(\"\u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434\\n\");#endif<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c T_VERSION 1t#\u0435\u0441\u043b\u0438 T_VERSION &gt;= 2t    \/\/ \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 2 \u0438 \u0432\u044b\u0448\u0435#\u0438\u043b\u0438\u0435\u0441\u043b\u0438 T_VERSION == 1t    \/\/ \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 1#\u0438\u043d\u0430\u0447\u0435    \/\/ \u043a\u043e\u0434 \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439#\u043a\u043e\u043d\u0447\u0438\u0442\u044c#\u0435\u0441\u043b\u0438\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e DEBUG    \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434\\n\");#\u043a\u043e\u043d\u0447\u0438\u0442\u044c<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445 <code>#if<\/code> \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 <code>true<\/code> \u0440\u0430\u0432\u043d\u0430 1, <code>false<\/code> \u0440\u0430\u0432\u043d\u0430 0. \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 <code>maybe<\/code> \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0430 \u0432 <code>#if<\/code> \u2014 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a \u0446\u0435\u043b\u043e\u043c\u0443.<\/p>\n<p>\u041f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u044b:<\/p>\n<ul>\n<li>\n<p><code>__T_LINE__<\/code> \u2014 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0438<\/p>\n<\/li>\n<li>\n<p><code>__T_FILE__<\/code> \u2014 \u0438\u043c\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>__T_VERSION__<\/code> \u2014 \u0432\u0435\u0440\u0441\u0438\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 T<\/p>\n<\/li>\n<\/ul>\n<h4>4.12. \u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (inline)<\/h4>\n<p>\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 <code>inline<\/code> (<code>\u0432\u0441\u0442\u0440\u043e\u0435\u043d<\/code>) \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0443, \u0447\u0442\u043e \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0451 \u0442\u0435\u043b\u043e\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u0442\u043e\u0447\u043a\u0435 \u0432\u044b\u0437\u043e\u0432\u0430. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0445 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u043d\u0430 \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445, \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/p>\n<pre><code>inline tint max(tint a, tint b) {    return (a &gt; b) ? a : b;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0432\u0441\u0442\u0440\u043e\u0435\u043d \u0442\u0446\u0435\u043b \u043c\u0430\u043a\u0441(\u0442\u0446\u0435\u043b a, \u0442\u0446\u0435\u043b b) {    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 (a &gt; b) ? a : b;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <code>inline<\/code> \u2014 \u044d\u0442\u043e \u043b\u0438\u0448\u044c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0443, \u0430 \u043d\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c <code>inline<\/code> \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438\u043b\u0438 \u043f\u0440\u0438 \u043d\u0438\u0437\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u0430\u0445, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u0442\u0435\u043b\u043e \u0431\u044b\u043b\u043e \u0432\u0438\u0434\u043d\u043e \u0432\u043e \u0432\u0441\u0435\u0445 \u0435\u0434\u0438\u043d\u0438\u0446\u0430\u0445 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0445 \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<pre><code>\/\/ \u0412 \u0444\u0430\u0439\u043b\u0435 utils.h#ifndef UTILS_H#define UTILS_Hinline tint abs(tint x) {    return (x &lt; 0t) ? -x : x;}#endif<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\/\/ \u0412 \u0444\u0430\u0439\u043b\u0435 utils.h#\u0435\u0441\u043b\u0438\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e UTILS_H#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c UTILS_H\u0432\u0441\u0442\u0440\u043e\u0435\u043d \u0442\u0446\u0435\u043b \u043c\u043e\u0434\u0443\u043b\u044c(\u0442\u0446\u0435\u043b x) {    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 (x &lt; 0t) ? -x : x;}#\u043a\u043e\u043d\u0447\u0438\u0442\u044c<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>5. \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u044b<\/h3>\n<p>\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u2014 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u044f\u0437\u044b\u043a\u0430 T, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0430\u044f \u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0430\u043c\u044f\u0442\u0438. \u0412 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u0442\u0440\u0430\u0439\u0442\u0430\u043c\u0438 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0430\u0434\u0440\u0435\u0441\u0443\u0435\u043c\u044b\u043c\u0438 \u0435\u0434\u0438\u043d\u0438\u0446\u0430\u043c\u0438.<\/p>\n<h4>5.1. \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0438 \u0430\u0434\u0440\u0435\u0441\u0430<\/h4>\n<p>\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0445\u0440\u0430\u043d\u0438\u0442 \u0430\u0434\u0440\u0435\u0441 \u0442\u0440\u0430\u0439\u0442\u0430 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u0422\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>*<\/code>:<\/p>\n<pre><code>tryte *p;    \/\/ \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 trytetint *q;     \/\/ \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 tint<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <code>&amp;<\/code> \u0431\u0435\u0440\u0451\u0442 \u0430\u0434\u0440\u0435\u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, <code>*<\/code> \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (\u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443):<\/p>\n<pre><code>tint x = 42t;tint *p = &amp;x;printtryte(*p);   \/\/ \u0432\u044b\u0432\u0435\u0434\u0435\u0442 42*p = 100t;        \/\/ \u0442\u0435\u043f\u0435\u0440\u044c x == 100t<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c <code>void *<\/code> \u2014 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u043c\u043e\u0436\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u043b\u044e\u0431\u043e\u0433\u043e \u0442\u0438\u043f\u0430:<\/p>\n<pre><code>void *ptr = &amp;x;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b x = 42t;\u0442\u0446\u0435\u043b *p = &amp;x;\u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(*p);   \/\/ \u0432\u044b\u0432\u0435\u0434\u0435\u0442 42*p = 100t;         \/\/ \u0442\u0435\u043f\u0435\u0440\u044c x == 100t<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>5.2. \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439<\/h4>\n<p>\u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b:<\/p>\n<pre><code>void swap(tryte *a, tryte *b) {    tryte temp = *a;    *a = *b;    *b = temp;}tint main() {    tryte x = 5t, y = 10t;    swap(&amp;x, &amp;y);    \/\/ \u0442\u0435\u043f\u0435\u0440\u044c x == 10t, y == 5t    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u043f\u0443\u0441\u0442\u043e \u043e\u0431\u043c\u0435\u043d(\u0442\u0440\u0430\u0439\u0442 *a, \u0442\u0440\u0430\u0439\u0442 *b) {    \u0442\u0440\u0430\u0439\u0442 temp = *a;    *a = *b;    *b = temp;}\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 x = 5t, y = 10t;    \u043e\u0431\u043c\u0435\u043d(&amp;x, &amp;y);    \/\/ \u0442\u0435\u043f\u0435\u0440\u044c x == 10t, y == 5t    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>5.3. \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u044b<\/h4>\n<p>\u0418\u043c\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u043c \u043d\u0430 \u0435\u0433\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u0418\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f <code>arr[i]<\/code> \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u0430 <code>*(arr + i)<\/code>:<\/p>\n<pre><code>tryte arr[5];tryte *p = arr;      \/\/ p \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 arr[0]*p = 10t;            \/\/ arr[0] = 10*(p + 1t) = 20t;     \/\/ arr[1] = 20arr[2] = 30t;        \/\/ \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e *(arr + 2) = 30<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0440\u0430\u0439\u0442 arr[5];\u0442\u0440\u0430\u0439\u0442 *p = arr;*p = 10t;*(p + 1t) = 20t;arr[2] = 30t;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>5.4. \u0410\u0434\u0440\u0435\u0441\u043d\u0430\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430<\/h4>\n<p>\u041f\u0440\u0438\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043a \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u0430\u0434\u0440\u0435\u0441 \u043d\u0430 <code>n * sizeof(\u0442\u0438\u043f)<\/code> \u0442\u0440\u0430\u0439\u0442\u043e\u0432:<\/p>\n<pre><code>tryte arr[10];tryte *p = arr;p = p + 1t;    \/\/ \u0441\u0434\u0432\u0438\u0433 \u043d\u0430 sizeof(tryte) = 1 \u0442\u0440\u0430\u0439\u0442tlong *q;q = q + 1t;    \/\/ \u0441\u0434\u0432\u0438\u0433 \u043d\u0430 sizeof(tlong) = 2 \u0442\u0440\u0430\u0439\u0442\u0430<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0442\u0430\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0434\u0430\u0451\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438:<\/p>\n<pre><code>tryte *start = &amp;arr[0];tryte *end = &amp;arr[5];tlong diff = end - start;   \/\/ 5t<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0440\u0430\u0439\u0442 *\u043d\u0430\u0447\u0430\u043b\u043e = &amp;arr[0];\u0442\u0440\u0430\u0439\u0442 *\u043a\u043e\u043d\u0435\u0446 = &amp;arr[5];\u0442\u0434\u043b\u0438\u043d \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u044c = \u043a\u043e\u043d\u0435\u0446 - \u043d\u0430\u0447\u0430\u043b\u043e;   \/\/ 5t<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>5.5. \u0421\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/h4>\n<p>\u0421\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u2014 \u043c\u0430\u0441\u0441\u0438\u0432\u044b <code>tryte<\/code>, \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0438\u0435\u0441\u044f <code>0t<\/code>. \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre><code>tryte *s = \"\u041f\u0440\u0438\u0432\u0435\u0442, T!\";<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre><code>void print_upper(tryte *s) {    for (tint i = 0t; s[i] != 0t; i = i + 1t)        putchar(s[i]);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u043f\u0443\u0441\u0442\u043e \u043f\u0435\u0447\u0430\u0442\u044c_\u0432\u0435\u0440\u0445(\u0442\u0440\u0430\u0439\u0442 *s) {    \u0434\u043b\u044f (\u0442\u0446\u0435\u043b i = 0t; s[i] != 0t; i = i + 1t)        putchar(s[i]);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>5.6. \u041c\u0430\u0441\u0441\u0438\u0432\u044b \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439, \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438<\/h4>\n<p>\u041c\u0430\u0441\u0441\u0438\u0432 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439:<\/p>\n<pre><code>tryte *lines[100];   \/\/ \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0437 100 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 tryte<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c:<\/p>\n<pre><code>tryte **pp;          \/\/ \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 tryte<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440:<\/p>\n<pre><code>void sort_lines(tryte **lines, tint n) {    \/\/ \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0441\u0442\u0440\u043e\u043a}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u043f\u0443\u0441\u0442\u043e \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c_\u0441\u0442\u0440\u043e\u043a\u0438(\u0442\u0440\u0430\u0439\u0442 **\u0441\u0442\u0440\u043e\u043a\u0438, \u0442\u0446\u0435\u043b n) {    \/\/ \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0441\u0442\u0440\u043e\u043a}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>5.7. \u041c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b<\/h4>\n<p>\u0414\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a <code>\u0442\u0438\u043f \u0438\u043c\u044f[\u0441\u0442\u0440\u043e\u043a\u0438][\u0441\u0442\u043e\u043b\u0431\u0446\u044b]<\/code>:<\/p>\n<pre><code>tryte matrix[10][20];   \/\/ 10 \u0441\u0442\u0440\u043e\u043a \u043f\u043e 20 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443: <code>matrix[i][j]<\/code>. \u0412 \u043f\u0430\u043c\u044f\u0442\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c (row-major order).<\/p>\n<h4>5.8. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439<\/h4>\n<p>\u041c\u0430\u0441\u0441\u0438\u0432 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0441\u0442\u0440\u043e\u043a:<\/p>\n<pre><code>tryte *months[] = {    \"\u044f\u043d\u0432\u0430\u0440\u044c\", \"\u0444\u0435\u0432\u0440\u0430\u043b\u044c\", \"\u043c\u0430\u0440\u0442\",    \"\u0430\u043f\u0440\u0435\u043b\u044c\", \"\u043c\u0430\u0439\", \"\u0438\u044e\u043d\u044c\",    \"\u0438\u044e\u043b\u044c\", \"\u0430\u0432\u0433\u0443\u0441\u0442\", \"\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c\",    \"\u043e\u043a\u0442\u044f\u0431\u0440\u044c\", \"\u043d\u043e\u044f\u0431\u0440\u044c\", \"\u0434\u0435\u043a\u0430\u0431\u0440\u044c\"};tint main() {    for (tint i = 0t; i &lt; 12t; i = i + 1t)        print(months[i]);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0440\u0430\u0439\u0442 *\u043c\u0435\u0441\u044f\u0446\u044b[] = {    \"\u044f\u043d\u0432\u0430\u0440\u044c\", \"\u0444\u0435\u0432\u0440\u0430\u043b\u044c\", \"\u043c\u0430\u0440\u0442\",    \"\u0430\u043f\u0440\u0435\u043b\u044c\", \"\u043c\u0430\u0439\", \"\u0438\u044e\u043d\u044c\",    \"\u0438\u044e\u043b\u044c\", \"\u0430\u0432\u0433\u0443\u0441\u0442\", \"\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c\",    \"\u043e\u043a\u0442\u044f\u0431\u0440\u044c\", \"\u043d\u043e\u044f\u0431\u0440\u044c\", \"\u0434\u0435\u043a\u0430\u0431\u0440\u044c\"};\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0434\u043b\u044f (\u0442\u0446\u0435\u043b i = 0t; i &lt; 12t; i = i + 1t)        \u043f\u0435\u0447\u0430\u0442\u044c(\u043c\u0435\u0441\u044f\u0446\u044b[i]);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>5.9. \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043f\u0440\u043e\u0442\u0438\u0432 \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432<\/h4>\n<p>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 <code>tryte *p[10]<\/code> (\u043c\u0430\u0441\u0441\u0438\u0432 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439) \u0438 <code>tryte p[10][20]<\/code> (\u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432) \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430:<\/p>\n<ul>\n<li>\n<p><code>tryte *p[10]<\/code> \u2014 10 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p><code>tryte p[10][20]<\/code> \u2014 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c 10\u00d720 \u0442\u0440\u0430\u0439\u0442\u043e\u0432, \u0432\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u044b\u0431\u043e\u0440 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0437\u0430\u0434\u0430\u0447\u0438: \u043c\u0430\u0441\u0441\u0438\u0432 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0433\u0438\u0431\u0447\u0435, \u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a; \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0435\u0435 \u0438 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430.<\/p>\n<h4>5.10. \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438<\/h4>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>main<\/code> \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code>tint main(tint argc, tryte *argv[]) {    for (tint i = 0t; i &lt; argc; i = i + 1t) {        print(argv[i]);        print(\"\\n\");    }    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<ul>\n<li>\n<p><code>argc<\/code> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0438\u043c\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b).<\/p>\n<\/li>\n<li>\n<p><code>argv[0]<\/code> \u2014 \u0438\u043c\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<\/li>\n<li>\n<p><code>argv[argc]<\/code> \u2014 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c.<\/p>\n<\/li>\n<\/ul>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f(\u0442\u0446\u0435\u043b argc, \u0442\u0440\u0430\u0439\u0442 *argv[]) {    \u0434\u043b\u044f (\u0442\u0446\u0435\u043b i = 0t; i &lt; argc; i = i + 1t) {        \u043f\u0435\u0447\u0430\u0442\u044c(argv[i]);        \u043f\u0435\u0447\u0430\u0442\u044c(\"\\n\");    }    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>5.11. \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/h4>\n<p>\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0445\u0440\u0430\u043d\u0438\u0442 \u0430\u0434\u0440\u0435\u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0435\u0451 \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u043e:<\/p>\n<pre><code>tryte (*func)(tryte, tryte);   \/\/ \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044etryte add(tryte a, tryte b) { return a + b; }tryte sub(tryte a, tryte b) { return a - b; }tint main() {    func = add;    printtryte(func(5t, 3t));   \/\/ 8    func = sub;    printtryte(func(5t, 3t));   \/\/ 2    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0440\u0430\u0439\u0442 (*\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f)(\u0442\u0440\u0430\u0439\u0442, \u0442\u0440\u0430\u0439\u0442);\u0442\u0440\u0430\u0439\u0442 \u0441\u043b\u043e\u0436\u0438\u0442\u044c(\u0442\u0440\u0430\u0439\u0442 a, \u0442\u0440\u0430\u0439\u0442 b) { \u0432\u043e\u0437\u0432\u0440\u0430\u0442 a + b; }\u0442\u0440\u0430\u0439\u0442 \u0432\u044b\u0447\u0435\u0441\u0442\u044c(\u0442\u0440\u0430\u0439\u0442 a, \u0442\u0440\u0430\u0439\u0442 b) { \u0432\u043e\u0437\u0432\u0440\u0430\u0442 a - b; }\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f = \u0441\u043b\u043e\u0436\u0438\u0442\u044c;    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f(5t, 3t));   \/\/ 8    \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f = \u0432\u044b\u0447\u0435\u0441\u0442\u044c;    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f(5t, 3t));   \/\/ 2    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u0432 \u0438 callback-\u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/p>\n<h4>5.12. \u0421\u043b\u043e\u0436\u043d\u044b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f<\/h4>\n<p>\u0412 T, \u043a\u0430\u043a \u0438 \u0432 C, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u043c\u0438. \u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0447\u0442\u0435\u043d\u0438\u044f: \u00ab\u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043d\u0430\u0440\u0443\u0436\u0443\u00bb.<\/p>\n<pre><code>tryte *(*fp)(tryte *);   \/\/ fp \u2014 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e,                          \/\/ \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0443\u044e tryte* \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0443\u044e tryte*tint (*arr[10])(tlong);  \/\/ arr \u2014 \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0437 10 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438,                          \/\/ \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0435 tlong \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0438\u0435 tinttint (*(*f)(tint))[5];   \/\/ f \u2014 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0443\u044e tint                          \/\/ \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0443\u044e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0437 5 tint<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code>typedef<\/code>:<\/p>\n<pre><code>typedef tint (*func_t)(tint, tint);func_t operations[10];<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0438\u043f\u0440\u0435\u0433 \u0442\u0446\u0435\u043b (*\u0444\u0443\u043d\u043a\u0446\u0438\u044f_\u0442)(\u0442\u0446\u0435\u043b, \u0442\u0446\u0435\u043b);\u0444\u0443\u043d\u043a\u0446\u0438\u044f_\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438[10];<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>6. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/h3>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432 T \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u043f\u043e\u0434 \u043e\u0434\u043d\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c. \u042d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<h4>6.1. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u0445<\/h4>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c <code>struct<\/code> (<code>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430<\/code>):<\/p>\n<pre><code>struct point {    tryte x;    tryte y;};<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u044d\u0442\u043e\u0433\u043e \u0442\u0438\u043f\u0430:<\/p>\n<pre><code>struct point p1;struct point p2 = { 10t, 20t };<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u043b\u044f\u043c \u2014 \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0447\u043a\u0443 <code>.<\/code>:<\/p>\n<pre><code>p1.x = 5t;p1.y = 15t;printtryte(p1.x + p1.y);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u043e\u0447\u043a\u0430 {    \u0442\u0440\u0430\u0439\u0442 x;    \u0442\u0440\u0430\u0439\u0442 y;};\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u043e\u0447\u043a\u0430 p1;\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u043e\u0447\u043a\u0430 p2 = { 10t, 20t };p1.x = 5t;p1.y = 15t;\u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(p1.x + p1.y);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>6.2. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/h4>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0439:<\/p>\n<pre><code>struct point make_point(tryte x, tryte y) {    struct point p;    p.x = x;    p.y = y;    return p;}void print_point(struct point p) {    printbal(p.x);    print(\" \");    printbal(p.y);    print(\"\\n\");}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0435\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c:<\/p>\n<pre><code>void move_point(struct point *p, tryte dx, tryte dy) {    p-&gt;x = p-&gt;x + dx;    p-&gt;y = p-&gt;y + dy;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u043e\u0447\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0442\u044c_\u0442\u043e\u0447\u043a\u0443(\u0442\u0440\u0430\u0439\u0442 x, \u0442\u0440\u0430\u0439\u0442 y) {    \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u043e\u0447\u043a\u0430 p;    p.x = x;    p.y = y;    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 p;}\u043f\u0443\u0441\u0442\u043e \u043f\u0435\u0447\u0430\u0442\u044c_\u0442\u043e\u0447\u043a\u0430(\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u043e\u0447\u043a\u0430 p) {    \u043f\u0435\u0447\u0430\u0442\u044c\u0431\u0430\u043b(p.x);    \u043f\u0435\u0447\u0430\u0442\u044c(\" \");    \u043f\u0435\u0447\u0430\u0442\u044c\u0431\u0430\u043b(p.y);    \u043f\u0435\u0447\u0430\u0442\u044c(\"\\n\");}\u043f\u0443\u0441\u0442\u043e \u0441\u0434\u0432\u0438\u043d\u0443\u0442\u044c_\u0442\u043e\u0447\u043a\u0443(\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u043e\u0447\u043a\u0430 *p, \u0442\u0440\u0430\u0439\u0442 dx, \u0442\u0440\u0430\u0439\u0442 dy) {    p-&gt;x = p-&gt;x + dx;    p-&gt;y = p-&gt;y + dy;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>6.3. \u041c\u0430\u0441\u0441\u0438\u0432\u044b \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440<\/h4>\n<p>\u041c\u0430\u0441\u0441\u0438\u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u0430\u0441\u0441\u0438\u0432:<\/p>\n<pre><code>struct point points[100];\/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044fstruct point polygon[] = {    { 0t, 0t },    { 10t, 0t },    { 10t, 10t },    { 0t, 10t }};<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c:<\/p>\n<pre><code>for (tint i = 0t; i &lt; 4t; i = i + 1t)    print_point(polygon[i]);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u043e\u0447\u043a\u0430 \u0442\u043e\u0447\u043a\u0438[100];\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u043e\u0447\u043a\u0430 \u043c\u043d\u043e\u0433\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a[] = {    { 0t, 0t },    { 10t, 0t },    { 10t, 10t },    { 0t, 10t }};\u0434\u043b\u044f (\u0442\u0446\u0435\u043b i = 0t; i &lt; 4t; i = i + 1t)    \u043f\u0435\u0447\u0430\u0442\u044c_\u0442\u043e\u0447\u043a\u0430(\u043c\u043d\u043e\u0433\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a[i]);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>6.4. \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/h4>\n<p>\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e. \u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u043e\u043b\u044f\u043c \u0447\u0435\u0440\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <code>-&gt;<\/code>:<\/p>\n<pre><code>struct point *pp = &amp;p1;pp-&gt;x = 30t;              \/\/ \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e (*pp).x = 30printtryte(pp-&gt;y);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u043e\u0447\u043a\u0430 *pp = &amp;p1;pp-&gt;x = 30t;\u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(pp-&gt;y);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>6.5. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u043d\u0430 \u0441\u0435\u0431\u044f<\/h4>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0442\u0438\u043f \u2014 \u044d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u0430 \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440:<\/p>\n<pre><code>struct node {    tryte data;    struct node *next;};<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430:<\/p>\n<pre><code>tint main() {    struct node n1, n2, n3;    n1.data = 1t; n1.next = &amp;n2;    n2.data = 2t; n2.next = &amp;n3;    n3.data = 3t; n3.next = 0t;   \/\/ \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u2014 \u043a\u043e\u043d\u0435\u0446 \u0441\u043f\u0438\u0441\u043a\u0430    \/\/ \u043e\u0431\u0445\u043e\u0434 \u0441\u043f\u0438\u0441\u043a\u0430    for (struct node *p = &amp;n1; p != 0t; p = p-&gt;next)        printtryte(p-&gt;data);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0443\u0437\u0435\u043b {    \u0442\u0440\u0430\u0439\u0442 \u0434\u0430\u043d\u043d\u044b\u0435;    \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0443\u0437\u0435\u043b *\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439;};\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0443\u0437\u0435\u043b n1, n2, n3;    n1.\u0434\u0430\u043d\u043d\u044b\u0435 = 1t; n1.\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 = &amp;n2;    n2.\u0434\u0430\u043d\u043d\u044b\u0435 = 2t; n2.\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 = &amp;n3;    n3.\u0434\u0430\u043d\u043d\u044b\u0435 = 3t; n3.\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 = 0t;    \u0434\u043b\u044f (\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0443\u0437\u0435\u043b *p = &amp;n1; p != 0t; p = p-&gt;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439)        \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(p-&gt;\u0434\u0430\u043d\u043d\u044b\u0435);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>6.6. \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0442\u0430\u0431\u043b\u0438\u0446<\/h4>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e\u0438\u0441\u043a\u0430. \u041f\u0440\u0438\u043c\u0435\u0440 \u2014 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0445 \u0446\u0438\u0444\u0440 \u0438 \u0438\u0445 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439:<\/p>\n<pre><code>struct trit_entry {    tryte value;    tryte *name;};struct trit_entry trit_table[] = {    { -1, \"\u043c\u0438\u043d\u0443\u0441\" },    { 0,  \"\u043d\u043e\u043b\u044c\" },    { 1,  \"\u043f\u043b\u044e\u0441\" }};tryte *trit_name(tryte val) {    for (tint i = 0t; i &lt; 3t; i = i + 1t) {        if (trit_table[i].value == val)            return trit_table[i].name;    }    return \"\u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\";}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0437\u0430\u043f\u0438\u0441\u044c_\u0442\u0440\u0438\u0442\u0430 {    \u0442\u0440\u0430\u0439\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435;    \u0442\u0440\u0430\u0439\u0442 *\u0438\u043c\u044f;};\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0437\u0430\u043f\u0438\u0441\u044c_\u0442\u0440\u0438\u0442\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430_\u0442\u0440\u0438\u0442\u043e\u0432[] = {    { -1, \"\u043c\u0438\u043d\u0443\u0441\" },    { 0,  \"\u043d\u043e\u043b\u044c\" },    { 1,  \"\u043f\u043b\u044e\u0441\" }};\u0442\u0440\u0430\u0439\u0442 *\u0438\u043c\u044f_\u0442\u0440\u0438\u0442\u0430(\u0442\u0440\u0430\u0439\u0442 val) {    \u0434\u043b\u044f (\u0442\u0446\u0435\u043b i = 0t; i &lt; 3t; i = i + 1t) {        \u0435\u0441\u043b\u0438 (\u0442\u0430\u0431\u043b\u0438\u0446\u0430_\u0442\u0440\u0438\u0442\u043e\u0432[i].\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 == val)            \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0430_\u0442\u0440\u0438\u0442\u043e\u0432[i].\u0438\u043c\u044f;    }    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \"\u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\";}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>6.7. \u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043e typedef<\/h4>\n<p><code>typedef<\/code> \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0441\u0438\u043d\u043e\u043d\u0438\u043c \u0434\u043b\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0442\u0438\u043f\u0430:<\/p>\n<pre><code>typedef tryte \u0442\u0440\u0438\u0442_\u043c\u0430\u0441\u0441\u0438\u0432[3];typedef struct point Point;typedef struct node *NodePtr;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f:<\/p>\n<pre><code>Point p1;              \/\/ \u0442\u043e \u0436\u0435, \u0447\u0442\u043e struct point p1\u0442\u0440\u0438\u0442_\u043c\u0430\u0441\u0441\u0438\u0432 arr;       \/\/ \u0442\u043e \u0436\u0435, \u0447\u0442\u043e tryte arr[3]NodePtr list_head;     \/\/ \u0442\u043e \u0436\u0435, \u0447\u0442\u043e struct node *list_head<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>typedef<\/code> \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0434\u043b\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439:<\/p>\n<pre><code>typedef tint (*CompareFunc)(const tryte *, const tryte *);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0442\u0438\u043f\u0440\u0435\u0433 \u0442\u0440\u0430\u0439\u0442 \u043c\u0430\u0441\u0441\u0438\u0432_\u0442\u0440\u0438\u0442\u043e\u0432[3];\u0442\u0438\u043f\u0440\u0435\u0433 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0442\u043e\u0447\u043a\u0430 \u0422\u043e\u0447\u043a\u0430;\u0442\u0438\u043f\u0440\u0435\u0433 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0443\u0437\u0435\u043b *\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0423\u0437\u043b\u0430;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>6.8. \u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f<\/h4>\n<p>\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 (<code>union<\/code> \/ <code>\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435<\/code>) \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438. \u0420\u0430\u0437\u043c\u0435\u0440 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0432\u0435\u043d \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u043f\u043e\u043b\u044f.<\/p>\n<pre><code>union data {    tint i;    tfloat f;    tryte *s;};union data d;d.i = 42t;          \/\/ \u0445\u0440\u0430\u043d\u0438\u043c tintprinttryte(d.i);d.f = 3.14f;        \/\/ \u0442\u0435\u043f\u0435\u0440\u044c \u0442\u0430\u043c tfloat (\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e)printfloat(d.f);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 {    \u0442\u0446\u0435\u043b i;    \u0442\u0432\u0435\u0449 f;    \u0442\u0440\u0430\u0439\u0442 *s;};\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 d;d.i = 42t;\u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(d.i);d.f = 3.14f;\u043f\u0435\u0447\u0430\u0442\u044c\u0432\u0435\u0449(d.f);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>6.9. \u0422\u0440\u0438\u0442\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f (\u0430\u043d\u0430\u043b\u043e\u0433 \u0431\u0438\u0442\u043e\u0432\u044b\u0445 \u043f\u043e\u043b\u0435\u0439)<\/h4>\n<p>\u0422\u0440\u0438\u0442\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u043e\u0434\u043d\u043e\u043c \u0442\u0440\u0430\u0439\u0442\u0435, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0440\u0438\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044f:<\/p>\n<pre><code>struct {    tryte x : 3;   \/\/ 3 \u0442\u0440\u0438\u0442\u0430 (\u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d -13..+13)    tryte y : 3;   \/\/ 3 \u0442\u0440\u0438\u0442\u0430    tryte z : 3;   \/\/ 3 \u0442\u0440\u0438\u0442\u0430 \u2014 \u0432\u0441\u0435\u0433\u043e 9 \u0442\u0440\u0438\u0442\u043e\u0432 = 1 \u0442\u0440\u0430\u0439\u0442} packed;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u043b\u044f \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0442\u0440\u0430\u0439\u0442\u043e\u0432. \u0415\u0441\u043b\u0438 \u0441\u0443\u043c\u043c\u0430 \u0442\u0440\u0438\u0442\u043e\u0432 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 9, \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0442\u0440\u0430\u0439\u0442.<\/p>\n<pre><code>packed.x = 5t;packed.y = -3t;packed.z = 0t;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 {    \u0442\u0440\u0430\u0439\u0442 x : 3;    \u0442\u0440\u0430\u0439\u0442 y : 3;    \u0442\u0440\u0430\u0439\u0442 z : 3;} \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043e;\u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043e.x = 5t;\u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043e.y = -3t;\u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043e.z = 0t;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>7. \u0412\u0432\u043e\u0434 \u0438 \u0432\u044b\u0432\u043e\u0434<\/h3>\n<p>\u0412 \u044f\u0437\u044b\u043a\u0435 T \u043d\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 \u2014 \u043e\u043d\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 <code>&lt;tio.h&gt;<\/code>. \u042d\u0442\u0430 \u0433\u043b\u0430\u0432\u0430 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0432\u0432\u043e\u0434\u043e\u043c \u0438 \u0432\u044b\u0432\u043e\u0434\u043e\u043c.<\/p>\n<h4>7.1. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u0432\u043e\u0434-\u0432\u044b\u0432\u043e\u0434<\/h4>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <code>&lt;tio.h&gt;<\/code> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p><code>getchar()<\/code> \u2014 \u0447\u0438\u0442\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0441\u0438\u043c\u0432\u043e\u043b (\u0442\u0438\u043f <code>tryte<\/code>) \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>0t<\/code> \u043f\u0440\u0438 \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0446\u0430 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p><code>putchar(c)<\/code> \u2014 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b <code>c<\/code> \u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434.<\/p>\n<\/li>\n<li>\n<p><code>print(s)<\/code> \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u0443.<\/p>\n<\/li>\n<li>\n<p><code>printtryte(x)<\/code> \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<\/li>\n<li>\n<p><code>printbal(x)<\/code> \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 (<code>+<\/code>, <code>0<\/code>, <code>-<\/code>).<\/p>\n<\/li>\n<li>\n<p><code>printtril(b)<\/code> \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u043a <code>true<\/code>, <code>maybe<\/code> \u0438\u043b\u0438 <code>false<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>printfloat(f)<\/code> \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 <code>tfloat<\/code> \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<\/li>\n<li>\n<p><code>printdouble(d)<\/code> \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 <code>tdouble<\/code> \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code>#include &lt;tio.h&gt;tint main() {    tryte c;    while ((c = getchar()) != 0t)        putchar(c);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 c;    \u043f\u043e\u043a\u0430 ((c = getchar()) != 0t)        putchar(c);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>7.2. \u0424\u043e\u0440\u043c\u0430\u0442\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 (printf)<\/h4>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>tprintf<\/code> (\u0438\u043b\u0438 <code>printf<\/code>) \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0441 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u043c\u0438 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430\u043c\u0438:<\/p>\n<pre><code>tprintf(\"\u0446\u0435\u043b\u043e\u0435: %T, \u0431\u0430\u043b\u0430\u043d\u0441: %B, tril: %R\\n\", a, a, flag);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0444\u043e\u0440\u043c\u0430\u0442\u0430:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>%T<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 <code>tryte<\/code> \/ <code>tint<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>%L<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u043e\u0434 <code>tlong<\/code> \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>%LL<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u043e\u0434 <code>tlong long<\/code> \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>%B<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 (<code>+<\/code>, <code>0<\/code>, <code>-<\/code>)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>%R<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u043e\u0434 <code>tril<\/code> (<code>true<\/code> \/ <code>maybe<\/code> \/ <code>false<\/code>)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>%F<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u043e\u0434 <code>tfloat<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>%D<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u043e\u0434 <code>tdouble<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>%S<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438 (<code>tryte *<\/code>)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>%C<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h4>7.3. \u0421\u043f\u0438\u0441\u043a\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b<\/h4>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <code>&lt;tstdarg.h&gt;<\/code> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n<pre><code>#include &lt;tstdarg.h&gt;#include &lt;tio.h&gt;tint sum(tint count, ...) {    tva_list args;    tva_start(args, count);    tint total = 0t;    for (tint i = 0t; i &lt; count; i = i + 1t)        total = total + tva_arg(args, tint);    tva_end(args);    return total;}tint main() {    tint s = sum(4t, 1t, 2t, 3t, 4t);    printtryte(s);   \/\/ 10    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tstdarg.h&gt;#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0441\u0443\u043c\u043c\u0430(\u0442\u0446\u0435\u043b count, ...) {    tva_list args;    tva_start(args, count);    \u0442\u0446\u0435\u043b \u0432\u0441\u0435\u0433\u043e = 0t;    \u0434\u043b\u044f (\u0442\u0446\u0435\u043b i = 0t; i &lt; count; i = i + 1t)        \u0432\u0441\u0435\u0433\u043e = \u0432\u0441\u0435\u0433\u043e + tva_arg(args, \u0442\u0446\u0435\u043b);    tva_end(args);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0432\u0441\u0435\u0433\u043e;}\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0446\u0435\u043b s = \u0441\u0443\u043c\u043c\u0430(4t, 1t, 2t, 3t, 4t);    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(s);   \/\/ 10    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>7.4. \u0424\u043e\u0440\u043c\u0430\u0442\u043d\u044b\u0439 \u0432\u0432\u043e\u0434 (tscanf)<\/h4>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>tscanf<\/code> (\u0438\u043b\u0438 <code>scanf<\/code>) \u0447\u0438\u0442\u0430\u0435\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u0432\u043e\u0434:<\/p>\n<pre><code>tint x;tscanf(\"%T\", &amp;x);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u0442\u0435 \u0436\u0435, \u0447\u0442\u043e \u0438 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430: <code>%T<\/code>, <code>%L<\/code>, <code>%F<\/code>, <code>%D<\/code>, <code>%S<\/code>.<\/p>\n<h4>7.5. \u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0444\u0430\u0439\u043b\u0430\u043c<\/h4>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p><code>tFILE <em>tfopen(const tryte <\/em>path, const tryte *mode)<\/code> \u2014 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b.<\/p>\n<\/li>\n<li>\n<p><code>tint tgetc(tFILE *stream)<\/code> \u2014 \u0447\u0438\u0442\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p><code>tint tputc(tint c, tFILE *stream)<\/code> \u2014 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b \u0432 \u0444\u0430\u0439\u043b.<\/p>\n<\/li>\n<li>\n<p><code>tint tfclose(tFILE *stream)<\/code> \u2014 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0420\u0435\u0436\u0438\u043c\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f: <code>\"r\"<\/code> (\u0447\u0442\u0435\u043d\u0438\u0435), <code>\"w\"<\/code> (\u0437\u0430\u043f\u0438\u0441\u044c), <code>\"a\"<\/code> (\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435), <code>\"r+\"<\/code>, <code>\"w+\"<\/code>, <code>\"a+\"<\/code>.<\/p>\n<pre><code>#include &lt;tio.h&gt;tint main() {    tFILE *f = tfopen(\"\u043f\u0440\u0438\u043c\u0435\u0440.\u0442\", \"r\");    if (f == 0t) {        print(\"\u043e\u0448\u0438\u0431\u043a\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0444\u0430\u0439\u043b\u0430\\n\");        return 1t;    }    tryte c;    while ((c = tgetc(f)) != 0t)        putchar(c);    tfclose(f);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    tFILE *f = tfopen(\"\u043f\u0440\u0438\u043c\u0435\u0440.\u0442\", \"r\");    \u0435\u0441\u043b\u0438 (f == 0t) {        \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043e\u0448\u0438\u0431\u043a\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0444\u0430\u0439\u043b\u0430\\n\");        \u0432\u043e\u0437\u0432\u0440\u0430\u0442 1t;    }    \u0442\u0440\u0430\u0439\u0442 c;    \u043f\u043e\u043a\u0430 ((c = tgetc(f)) != 0t)        putchar(c);    tfclose(f);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>7.6. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 (stderr \u0438 exit)<\/h4>\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a \u043e\u0448\u0438\u0431\u043e\u043a \u2014 <code>tstderr<\/code>. \u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>texit(code)<\/code> \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0441 \u043a\u043e\u0434\u043e\u043c \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430:<\/p>\n<pre><code>#include &lt;tio.h&gt;tint main() {    tFILE *f = tfopen(\"\u043d\u0435\u0441\u0443\u0449.\u0442\", \"r\");    if (f == 0t) {        tprintf(\"\u043e\u0448\u0438\u0431\u043a\u0430: \u0444\u0430\u0439\u043b \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\\n\");        texit(1t);    }    tfclose(f);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>7.7. \u0412\u0432\u043e\u0434-\u0432\u044b\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a<\/h4>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 <code>tgets<\/code> \u0438 <code>tputs<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p><code>tryte <em>tgets(tryte <\/em>s, tint n, tFILE *stream)<\/code> \u2014 \u0447\u0438\u0442\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 (\u0434\u043e <code>n-1<\/code> \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438\u043b\u0438 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u043e\u043a\u0438).<\/p>\n<\/li>\n<li>\n<p><code>tint tputs(const tryte <em>s, tFILE <\/em>stream)<\/code> \u2014 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443.<\/p>\n<\/li>\n<\/ul>\n<pre><code>#include &lt;tio.h&gt;tint main() {    tryte buf[100];    while (tgets(buf, 100, tstdin) != 0t)        tputs(buf, tstdout);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>7.8. \u0414\u0440\u0443\u0433\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/h4>\n<h3>7.8.1. \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438<\/h3>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <code>&lt;tstring.h&gt;<\/code> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p><code>tstrlen(s)<\/code> \u2014 \u0434\u043b\u0438\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><code>tstrcpy(dst, src)<\/code> \u2014 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><code>tstrcat(dst, src)<\/code> \u2014 \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044f \u0441\u0442\u0440\u043e\u043a.<\/p>\n<\/li>\n<li>\n<p><code>tstrcmp(s1, s2)<\/code> \u2014 \u043b\u0435\u043a\u0441\u0438\u043a\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 (\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u20131, 0, +1).<\/p>\n<\/li>\n<\/ul>\n<pre><code>#include &lt;tstring.h&gt;#include &lt;tio.h&gt;tint main() {    tryte s1[] = \"\u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439\";    tryte s2[] = \"\u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439\";    if (tstrcmp(s1, s2) == 0t)        print(\"\u0441\u0442\u0440\u043e\u043a\u0438 \u0440\u0430\u0432\u043d\u044b\\n\");    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>7.8.2. \u0410\u043d\u0430\u043b\u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <code>&lt;tctype.h&gt;<\/code> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><code>tisdigit(c)<\/code> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u0443\u044e \u0446\u0438\u0444\u0440\u0443.<\/p>\n<\/li>\n<li>\n<p><code>tisspace(c)<\/code> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b.<\/p>\n<\/li>\n<li>\n<p><code>tistrit(c)<\/code> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0442\u0440\u043e\u0438\u0447\u043d\u0443\u044e \u0446\u0438\u0444\u0440\u0443 (<code>-<\/code>, <code>0<\/code>, <code>+<\/code>).<\/p>\n<\/li>\n<li>\n<p><code>tisalpha(c)<\/code> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0431\u0443\u043a\u0432\u0443.<\/p>\n<\/li>\n<li>\n<p><code>toupper(c)<\/code>, <code>tolower(c)<\/code> \u2014 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430.<\/p>\n<\/li>\n<\/ul>\n<h3>7.8.3. \u0424\u0443\u043d\u043a\u0446\u0438\u044f ungetc<\/h3>\n<p><code>tungetc(c, stream)<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 \u043f\u043e\u0442\u043e\u043a. \u0413\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430.<\/p>\n<pre><code>tryte c = tgetc(f);if (tisdigit(c))    tungetc(c, f);   \/\/ \u0432\u0435\u0440\u043d\u0443\u043b\u0438 \u0446\u0438\u0444\u0440\u0443 \u043e\u0431\u0440\u0430\u0442\u043d\u043e<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>7.8.4. \u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h3>\n<p><code>tsystem(command)<\/code> \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b:<\/p>\n<pre><code>tsystem(\"\u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439_\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430.\u0442\");<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>7.8.5. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u044c\u044e<\/h3>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u044c\u044e:<\/p>\n<ul>\n<li>\n<p><code>void *tmalloc(n)<\/code> \u2014 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442 <code>n<\/code> \u0442\u0440\u0430\u0439\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><code>void tfree(p)<\/code> \u2014 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u044c.<\/p>\n<\/li>\n<li>\n<p><code>void *trealloc(p, n)<\/code> \u2014 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p><code>void *tcalloc(n, size)<\/code> \u2014 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442 \u0438 \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<pre><code>#include &lt;tstdlib.h&gt;#include &lt;tio.h&gt;tint main() {    tryte *buf = (tryte *) tmalloc(100t);    if (buf == 0t) {        print(\"\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c\\n\");        return 1t;    }    \/\/ \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 buf    tfree(buf);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>7.8.6. \u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/h3>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <code>&lt;tmath.h&gt;<\/code> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p><code>tsin(x)<\/code>, <code>tcos(x)<\/code> \u2014 \u0442\u0440\u0438\u0433\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p><code>tsqrt(x)<\/code> \u2014 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u043a\u043e\u0440\u0435\u043d\u044c.<\/p>\n<\/li>\n<li>\n<p><code>tabs(x)<\/code> \u2014 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0446\u0435\u043b\u044b\u0445.<\/p>\n<\/li>\n<li>\n<p><code>tfabs(x)<\/code> \u2014 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445.<\/p>\n<\/li>\n<li>\n<p><code>tmin(x, y)<\/code>, <code>tmax(x, y)<\/code> \u2014 \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c.<\/p>\n<\/li>\n<li>\n<p><code>tfloor(x)<\/code>, <code>tceil(x)<\/code> \u2014 \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u0432\u043d\u0438\u0437 \u0438 \u0432\u0432\u0435\u0440\u0445.<\/p>\n<\/li>\n<\/ul>\n<pre><code>#include &lt;tmath.h&gt;#include &lt;tio.h&gt;tint main() {    tdouble x = 2.0;    tdouble r = tsqrt(x);    printdouble(r);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>7.8.7. \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<\/h3>\n<p><code>trand()<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0441\u0435\u0432\u0434\u043e\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 <code>tint<\/code> \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 \u20139841 \u0434\u043e +9841:<\/p>\n<pre><code>#include &lt;tstdlib.h&gt;#include &lt;tio.h&gt;tint main() {    for (tint i = 0t; i &lt; 10t; i = i + 1t)        printtryte(trand());    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>8. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 UNIX (\u0442\u0440\u043e\u0438\u0447\u043d\u0430\u044f \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u044f)<\/h3>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0433\u043b\u0430\u0432\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438. \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u044d\u0442\u043e\u0439 \u0433\u043b\u0430\u0432\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u043f\u0440\u044f\u043c\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0432\u044b\u0437\u043e\u0432\u0430\u043c.<\/p>\n<h4>8.1. \u0414\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u044b \u0444\u0430\u0439\u043b\u043e\u0432<\/h4>\n<p>\u0414\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u0444\u0430\u0439\u043b\u0430 \u2014 \u044d\u0442\u043e \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0442\u0438\u043f\u0430 <code>tint<\/code>, \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u044e\u0449\u0435\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0444\u0430\u0439\u043b \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u044b:<\/p>\n<ul>\n<li>\n<p><code>0t<\/code> \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u0432\u043e\u0434 (stdin)<\/p>\n<\/li>\n<li>\n<p><code>1t<\/code> \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 (stdout)<\/p>\n<\/li>\n<li>\n<p><code>2t<\/code> \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u043e\u0448\u0438\u0431\u043e\u043a (stderr)<\/p>\n<\/li>\n<\/ul>\n<h4>8.2. \u041d\u0438\u0436\u043d\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 (read \u0438 write)<\/h4>\n<p>\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b <code>tread<\/code> \u0438 <code>twrite<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0430\u043c\u0438 \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<pre><code>tint n = tread(fd, buf, ntraits);tint m = twrite(fd, buf, ntraits);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<ul>\n<li>\n<p><code>fd<\/code> \u2014 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p><code>buf<\/code> \u2014 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0431\u0443\u0444\u0435\u0440 (\u0442\u0438\u043f <code>void *<\/code>).<\/p>\n<\/li>\n<li>\n<p><code>ntraits<\/code> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0440\u0430\u0439\u0442\u043e\u0432 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\/\u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445\/\u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0442\u0440\u0430\u0439\u0442\u043e\u0432 \u0438\u043b\u0438 <code>-1t<\/code> \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u2014 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430:<\/p>\n<pre><code>#include &lt;tio.h&gt;#define BUFSIZE 512ttint main() {    tryte buf[BUFSIZE];    tint n;    while ((n = tread(0t, buf, BUFSIZE)) &gt; 0t)        twrite(1t, buf, n);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0420\u0410\u0417\u041c\u0415\u0420\u0411\u0423\u0424\u0410 512t\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 \u0431\u0443\u0444[\u0420\u0410\u0417\u041c\u0415\u0420\u0411\u0423\u0424\u0410];    \u0442\u0446\u0435\u043b n;    \u043f\u043e\u043a\u0430 ((n = tread(0t, \u0431\u0443\u0444, \u0420\u0410\u0417\u041c\u0415\u0420\u0411\u0423\u0424\u0410)) &gt; 0t)        twrite(1t, \u0431\u0443\u0444, n);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>8.3. \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b open, creat, close, unlink<\/h4>\n<ul>\n<li>\n<p><code>tint topen(const tryte *path, tint flags)<\/code> \u2014 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b. \u0424\u043b\u0430\u0433\u0438: <code>0t<\/code> (\u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u0435\u043d\u0438\u0435), <code>1t<\/code> (\u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0438\u0441\u044c), <code>2t<\/code> (\u0447\u0442\u0435\u043d\u0438\u0435 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c).<\/p>\n<\/li>\n<li>\n<p><code>tint tcreat(const tryte *path, tint mode)<\/code> \u2014 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0444\u0430\u0439\u043b.<\/p>\n<\/li>\n<li>\n<p><code>tint tclose(tint fd)<\/code> \u2014 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b.<\/p>\n<\/li>\n<li>\n<p><code>tint tunlink(const tryte *path)<\/code> \u2014 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0444\u0430\u0439\u043b.<\/p>\n<\/li>\n<\/ul>\n<pre><code>#include &lt;tio.h&gt;tint main() {    tint fd = topen(\"\u0434\u0430\u043d\u043d\u044b\u0435.\u0442\", 0t);   \/\/ \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435    if (fd &lt; 0t) {        print(\"\u043e\u0448\u0438\u0431\u043a\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\\n\");        return 1t;    }    tryte buf[100];    tint n = tread(fd, buf, 100);    twrite(1t, buf, n);    tclose(fd);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n<pre><code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0446\u0435\u043b fd = topen(\"\u0434\u0430\u043d\u043d\u044b\u0435.\u0442\", 0t);    \u0435\u0441\u043b\u0438 (fd &lt; 0t) {        \u043f\u0435\u0447\u0430\u0442\u044c(\"\u043e\u0448\u0438\u0431\u043a\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\\n\");        \u0432\u043e\u0437\u0432\u0440\u0430\u0442 1t;    }    \u0442\u0440\u0430\u0439\u0442 \u0431\u0443\u0444[100];    \u0442\u0446\u0435\u043b n = tread(fd, \u0431\u0443\u0444, 100);    twrite(1t, \u0431\u0443\u0444, n);    tclose(fd);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>8.4. \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f (tlseek)<\/h4>\n<p><code>tlseek(fd, offset, whence)<\/code> \u2014 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0432 \u0444\u0430\u0439\u043b\u0435. \u0421\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u0442\u0440\u0430\u0439\u0442\u0430\u0445.<\/p>\n<ul>\n<li>\n<p><code>whence = 0t<\/code> \u2014 \u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u0430 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p><code>whence = 1t<\/code> \u2014 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p><code>whence = 2t<\/code> \u2014 \u043e\u0442 \u043a\u043e\u043d\u0446\u0430 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<\/li>\n<\/ul>\n<pre><code>tlseek(fd, 0t, 0t);     \/\/ \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0444\u0430\u0439\u043b\u0430tlseek(fd, 100t, 1t);   \/\/ \u043d\u0430 100 \u0442\u0440\u0430\u0439\u0442\u043e\u0432 \u0432\u043f\u0435\u0440\u0451\u0434 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438tlseek(fd, 0t, 2t);     \/\/ \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0432 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>8.5. \u041f\u0440\u0438\u043c\u0435\u0440. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 tfopen \u0438 tgetc<\/h4>\n<p>\u041f\u043e\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u0432\u043e\u0434-\u0432\u044b\u0432\u043e\u0434 \u043f\u043e\u0432\u0435\u0440\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432:<\/p>\n<pre><code>#include &lt;tio.h&gt;#include &lt;tstdlib.h&gt;#include &lt;tstring.h&gt;#define BUFSIZE 512tstruct tFILE {    tint fd;                \/\/ \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u0444\u0430\u0439\u043b\u0430    tryte buf[BUFSIZE];     \/\/ \u0431\u0443\u0444\u0435\u0440    tint pos;               \/\/ \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0432 \u0431\u0443\u0444\u0435\u0440\u0435    tint end;               \/\/ \u043a\u043e\u043d\u0435\u0446 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0431\u0443\u0444\u0435\u0440\u0435    tint flags;             \/\/ \u0444\u043b\u0430\u0433\u0438: 0 \u2014 \u0447\u0442\u0435\u043d\u0438\u0435, 1 \u2014 \u0437\u0430\u043f\u0438\u0441\u044c};tFILE *tfopen(const tryte *path, const tryte *mode) {    tFILE *fp = (tFILE *) tmalloc(sizeof(tFILE));    if (fp == 0t)        return 0t;    tint flags;    if (mode[0] == 'r')        flags = 0t;        \/\/ \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u0435\u043d\u0438\u0435    else if (mode[0] == 'w')        flags = 1t;        \/\/ \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0438\u0441\u044c    else        flags = 2t;        \/\/ \u0447\u0442\u0435\u043d\u0438\u0435 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c    fp-&gt;fd = topen(path, flags);    if (fp-&gt;fd &lt; 0t) {        tfree(fp);        return 0t;    }    fp-&gt;pos = 0t;    fp-&gt;end = 0t;    fp-&gt;flags = 0t;    return fp;}tint tgetc(tFILE *fp) {    if (fp-&gt;pos &gt;= fp-&gt;end) {        \/\/ \u0431\u0443\u0444\u0435\u0440 \u043f\u0443\u0441\u0442 \u2014 \u0447\u0438\u0442\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u043f\u043e\u0440\u0446\u0438\u044e        fp-&gt;end = tread(fp-&gt;fd, fp-&gt;buf, BUFSIZE);        if (fp-&gt;end &lt;= 0t)            return 0t;     \/\/ \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430 \u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430        fp-&gt;pos = 0t;    }    return fp-&gt;buf[fp-&gt;pos++];}tint tfclose(tFILE *fp) {    tint result = tclose(fp-&gt;fd);    tfree(fp);    return result;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>8.6. \u041f\u0440\u0438\u043c\u0435\u0440. \u041f\u0435\u0447\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432<\/h4>\n<p>\u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u043e\u0431\u0445\u043e\u0434 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b:<\/p>\n<pre><code>#include &lt;tio.h&gt;#include &lt;tstdlib.h&gt;#include &lt;tstring.h&gt;struct t_dirent {    tint inode;    tryte name[256];};tint topendir(const tryte *path);tint tclosedir(tint fd);tint treaddir(tint fd, struct t_dirent *entry);void print_directory(const tryte *path, tint depth) {    tint fd = topendir(path);    if (fd &lt; 0t)        return;    struct t_dirent entry;    while (treaddir(fd, &amp;entry) &gt; 0t) {        \/\/ \u043e\u0442\u0441\u0442\u0443\u043f \u0434\u043b\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438        for (tint i = 0t; i &lt; depth; i = i + 1t)            print(\"  \");        print(entry.name);        print(\"\\n\");        \/\/ \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433 (inode == 1t), \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u043c        if (entry.inode == 1t &amp;&amp; entry.name[0] != '.') {            tryte fullpath[512];            tstrcpy(fullpath, path);            tstrcat(fullpath, \"\/\");            tstrcat(fullpath, entry.name);            print_directory(fullpath, depth + 1t);        }    }    tclosedir(fd);}tint main() {    print_directory(\".\", 0t);    return 0t;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>8.7. \u041f\u0440\u0438\u043c\u0435\u0440. \u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043f\u0430\u043c\u044f\u0442\u0438<\/h4>\n<p>\u0423\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u043a\u0443\u0447\u0438, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0441 \u0442\u0440\u0430\u0439\u0442\u0430\u043c\u0438:<\/p>\n<pre><code>#include &lt;tio.h&gt;#include &lt;tstdlib.h&gt;#define HEAP_SIZE 4096t#define ALIGNMENT 1t     \/\/ \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u0432 \u0442\u0440\u0430\u0439\u0442\u0430\u0445static tryte heap[HEAP_SIZE];static tint heap_free = 0t;   \/\/ \u043d\u0430\u0447\u0430\u043b\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438typedef struct header {    tint size;              \/\/ \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430 \u0432 \u0442\u0440\u0430\u0439\u0442\u0430\u0445    tint used;              \/\/ 0 \u2014 \u0441\u0432\u043e\u0431\u043e\u0434\u0435\u043d, 1 \u2014 \u0437\u0430\u043d\u044f\u0442    struct header *next;    \/\/ \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a} Header;static Header *free_list = 0t;void *tmalloc(tint n) {    \/\/ \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435    n = (n + ALIGNMENT - 1t) \/ ALIGNMENT * ALIGNMENT;    \/\/ \u043f\u043e\u0438\u0441\u043a \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430    Header *prev = 0t;    Header *curr = free_list;    while (curr != 0t) {        if (!curr-&gt;used &amp;&amp; curr-&gt;size &gt;= n) {            \/\/ \u043d\u0430\u0448\u043b\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0431\u043b\u043e\u043a            curr-&gt;used = 1t;            return (void *)(curr + 1t);        }        prev = curr;        curr = curr-&gt;next;    }    \/\/ \u043d\u0435\u0442 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u2014 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u0438\u0437 \u043a\u0443\u0447\u0438    if (heap_free + n + sizeof(Header) &gt; HEAP_SIZE)        return 0t;   \/\/ \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u0438    Header *new_block = (Header *) &amp;heap[heap_free];    new_block-&gt;size = n;    new_block-&gt;used = 1t;    new_block-&gt;next = 0t;    if (prev != 0t)        prev-&gt;next = new_block;    else        free_list = new_block;    heap_free = heap_free + n + sizeof(Header);    return (void *)(new_block + 1t);}void tfree(void *ptr) {    if (ptr == 0t)        return;    Header *block = (Header *)ptr - 1t;    block-&gt;used = 0t;    \/\/ \u0441\u043b\u0438\u044f\u043d\u0438\u0435 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432    Header *curr = free_list;    while (curr != 0t) {        if (!curr-&gt;used &amp;&amp; curr-&gt;next != 0t &amp;&amp; !curr-&gt;next-&gt;used) {            curr-&gt;size = curr-&gt;size + sizeof(Header) + curr-&gt;next-&gt;size;            curr-&gt;next = curr-&gt;next-&gt;next;        } else {            curr = curr-&gt;next;        }    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>\u0410. \u0421\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e<\/h3>\n<p>\u0414\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u044b\u043c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u043c \u043f\u043e \u044f\u0437\u044b\u043a\u0443 T. \u041e\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043b\u0435\u043a\u0441\u0438\u043a\u0443, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0438 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0443 \u044f\u0437\u044b\u043a\u0430 \u0432 \u0442\u043e\u043c \u0436\u0435 \u0441\u0442\u0438\u043b\u0435, \u0447\u0442\u043e \u0438 \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 A \u0432 \u043a\u043d\u0438\u0433\u0435 K&amp;R.<\/p>\n<h4>\u0410.1. \u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h4>\n<p>\u042f\u0437\u044b\u043a T \u2014 \u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 \u044f\u0437\u044b\u043a\u0430 C. \u041e\u0441\u043d\u043e\u0432\u0443 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 <strong>\u0442\u0440\u0438\u0442<\/strong> (\u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u044f\u0434) \u0438 <strong>\u0442\u0440\u0430\u0439\u0442<\/strong> (9-\u0442\u0440\u0438\u0442\u043d\u043e\u0435 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e). \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e <strong>\u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0442\u0440\u043e\u0438\u0447\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f<\/strong> \u0441 \u0446\u0438\u0444\u0440\u0430\u043c\u0438 <code>-<\/code> (\u20131), <code>0<\/code>, <code>+<\/code> (+1). \u041b\u043e\u0433\u0438\u043a\u0430 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u0430\u044f; \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0431\u043b\u0438\u0437\u043e\u043a \u043a C, \u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d \u0442\u0440\u0438\u043d\u0430\u0440\u043d\u044b\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438 \u0438 \u0442\u0440\u0451\u0445\u0432\u0435\u0442\u0432\u0435\u0432\u044b\u043c\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438.<\/p>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 T \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 (\u0435\u0434\u0438\u043d\u0438\u0446 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438), \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0443\u044e C.<\/p>\n<h4>\u0410.2. \u0421\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u043e \u043b\u0435\u043a\u0441\u0438\u043a\u0435<\/h4>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 T \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0442\u043e\u043a\u0435\u043d\u043e\u0432, \u0440\u0430\u0437\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438 (\u043f\u0440\u043e\u0431\u0435\u043b, \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u044f, \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438). \u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438: <code>\/* ... *\/<\/code> (\u043c\u043d\u043e\u0433\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0435) \u0438 <code>\/\/ ...<\/code> (\u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u043e\u043a\u0438).<\/p>\n<p><strong>\u0422\u043e\u043a\u0435\u043d\u044b:<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b<\/strong> \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0431\u0443\u043a\u0432 (\u043b\u0430\u0442\u0438\u043d\u0438\u0446\u0430 <code>A<\/code>\u2013<code>Z<\/code>, <code>a<\/code>\u2013<code>z<\/code> \u0438 \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0430 <code>\u0410<\/code>\u2013<code>\u042f<\/code>, <code>\u0430<\/code>\u2013<code>\u044f<\/code>, <code>\u0401<\/code>, <code>\u0451<\/code>), \u0446\u0438\u0444\u0440 (<code>0<\/code>\u2013<code>9<\/code>) \u0438 \u0437\u043d\u0430\u043a\u0430 \u043f\u043e\u0434\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f <em>. \u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u2014 \u0431\u0443\u043a\u0432\u0430 \u0438\u043b\u0438 <\/em>. \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f.<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430<\/strong> \u2014 \u0438\u043c\u0435\u044e\u0442 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0435 \u0438 \u0440\u0443\u0441\u0441\u043a\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0435<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0420\u0443\u0441\u0441\u043a\u043e\u0435<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>if<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0435\u0441\u043b\u0438<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u0441\u043b\u043e\u0432\u0438\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>maybe<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u043c\u043e\u0436\u0435\u0442<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u0435\u0442\u0432\u044c \/ \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>else<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0438\u043d\u0430\u0447\u0435<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u0441\u043b\u043e\u0432\u0438\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>switch<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0432\u044b\u0431\u043e\u0440<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0431\u043e\u0440<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>case<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0441\u043b\u0443\u0447\u0430\u0439<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0435\u0442\u043a\u0430 \u0432\u044b\u0431\u043e\u0440\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>default<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u0435<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0435\u0442\u043a\u0430 \u0432\u044b\u0431\u043e\u0440\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>while<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u043f\u043e\u043a\u0430<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0426\u0438\u043a\u043b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>do<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0434\u0435\u043b\u0430\u0442\u044c<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0426\u0438\u043a\u043b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>for<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0434\u043b\u044f<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0426\u0438\u043a\u043b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>break<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0435\u0440\u0435\u0445\u043e\u0434<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>continue<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0435\u0440\u0435\u0445\u043e\u0434<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>return<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0432\u043e\u0437\u0432\u0440\u0430\u0442<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0435\u0440\u0435\u0445\u043e\u0434<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>goto<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u043f\u0435\u0440\u0435\u0439\u0442\u0438<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0435\u0440\u0435\u0445\u043e\u0434<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>struct<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>union<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>enum<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>typedef<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0442\u0438\u043f\u0440\u0435\u0433<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>const<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u043a\u043e\u043d\u0441\u0442<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>volatile<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0438\u0437\u043c\u0435\u043d\u0447<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>signed<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0437\u043d\u0430\u043a<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>unsigned<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0431\u0435\u0437\u0437\u043d\u0430\u043a<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>void<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u043f\u0443\u0441\u0442\u043e<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tint<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0442\u0446\u0435\u043b<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0426\u0435\u043b\u044b\u0439 \u0442\u0438\u043f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tryte<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0442\u0440\u0430\u0439\u0442<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0426\u0435\u043b\u044b\u0439 \u0442\u0438\u043f (\u0441\u0438\u043d\u043e\u043d\u0438\u043c <code>tint<\/code>)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tlong<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0442\u0434\u043b\u0438\u043d<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0426\u0435\u043b\u044b\u0439 \u0442\u0438\u043f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tlong long<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0442\u0434\u043b\u0438\u043d\u0434\u043b\u0438\u043d<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0426\u0435\u043b\u044b\u0439 \u0442\u0438\u043f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tfloat<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0442\u0432\u0435\u0449<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0442\u0438\u043f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tdouble<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0442\u0434\u0432\u043e\u0439\u043d<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0442\u0438\u043f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>trit<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0442\u0440\u0438\u0442<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f \u0442\u0440\u0438\u0442\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tril<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0442\u0440\u0438\u043b<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0438\u043f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>true<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0438\u0441\u0442\u0438\u043d\u0430<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>false<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u043b\u043e\u0436\u044c<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>maybe<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u043c\u043e\u0436\u0435\u0442<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>sizeof<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0440\u0430\u0437\u043c\u0435\u0440<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>extern<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0432\u043d\u0435\u0448<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043b\u0430\u0441\u0441 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>static<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0441\u0442\u0430\u0442\u0438\u0447<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043b\u0430\u0441\u0441 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>auto<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0430\u0432\u0442\u043e<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043b\u0430\u0441\u0441 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>register<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0440\u0435\u0433\u0438\u0441\u0442\u0440<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043b\u0430\u0441\u0441 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>inline<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>\u0432\u0441\u0442\u0440\u043e\u0435\u043d<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0417\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435, \u043d\u043e \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0441\u043b\u043e\u0432\u0430: <code>short<\/code> (<code>\u043a\u043e\u0440\u043e\u0442\u043a<\/code>), <code>char<\/code> (<code>\u0441\u0438\u043c\u0432<\/code>), <code>int<\/code> (<code>\u0446\u0435\u043b<\/code>), <code>long<\/code> (<code>\u0434\u043b\u0438\u043d<\/code>), <code>float<\/code> (<code>\u043f\u043b\u0430\u0432<\/code>), <code>double<\/code> (<code>\u0434\u0432\u043e\u0439\u043d<\/code>).<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><strong>\u0426\u0435\u043b\u044b\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0435:<\/strong> \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0446\u0438\u0444\u0440 \u0441 \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u043e\u043c <code>t<\/code> (<code>tint<\/code>), <code>tl<\/code> (<code>tlong<\/code>), <code>tll<\/code> (<code>tlong long<\/code>). \u041f\u0440\u0438\u043c\u0435\u0440\u044b: <code>42t<\/code>, <code>-100tl<\/code>, <code>0t<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0426\u0435\u043b\u044b\u0435 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0435:<\/strong> \u043f\u0440\u0435\u0444\u0438\u043a\u0441 <code>0t<\/code>, \u0437\u0430\u0442\u0435\u043c \u0446\u0438\u0444\u0440\u044b <code>-<\/code>, <code>0<\/code>, <code>+<\/code>. \u041f\u0440\u0438\u043c\u0435\u0440\u044b: <code>0t+-0_+-0<\/code>, <code>0t0<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0426\u0435\u043b\u044b\u0435 27-\u0440\u0438\u0447\u043d\u044b\u0435 (tryx):<\/strong> \u043f\u0440\u0435\u0444\u0438\u043a\u0441 <code>0y<\/code>, \u0437\u0430\u0442\u0435\u043c 3\/6\/9 \u0446\u0438\u0444\u0440 <code>0<\/code>\u2013<code>9<\/code>, <code>A<\/code>\u2013<code>Q<\/code>. \u041f\u0440\u0438\u043c\u0435\u0440\u044b: <code>0yDDD<\/code>, <code>0yQQQ<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0435:<\/strong> \u0446\u0435\u043b\u0430\u044f \u0438 \u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0447\u043a\u0443, \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e <code>e<\/code> \u0441 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u043c. \u0421\u0443\u0444\u0444\u0438\u043a\u0441 <code>f<\/code> (<code>tfloat<\/code>) \u0438\u043b\u0438 <code>d<\/code> (<code>tdouble<\/code>). \u041f\u0440\u0438\u043c\u0435\u0440\u044b: <code>3.14<\/code>, <code>-0.001f<\/code>, <code>1.0e+2d<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0435:<\/strong> \u043f\u0440\u0435\u0444\u0438\u043a\u0441 <code>0t<\/code>, \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u0430 \u0441 \u0442\u043e\u0447\u043a\u043e\u0439, <code>e<\/code>, \u043f\u043e\u0440\u044f\u0434\u043e\u043a. \u0421\u0443\u0444\u0444\u0438\u043a\u0441 <code>f<\/code> \u0438\u043b\u0438 <code>d<\/code> \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d. \u041f\u0440\u0438\u043c\u0435\u0440\u044b: <code>0t+.-0+0e+0f<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0435:<\/strong> <code>'+'<\/code>, <code>'0'<\/code>, <code>'-'<\/code> (\u0442\u0438\u043f <code>trit<\/code>); \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u2014 \u0442\u0438\u043f <code>tint<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435:<\/strong> \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0434\u0432\u043e\u0439\u043d\u044b\u0445 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445, \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f <code>0t<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435:<\/strong> <code>true<\/code> (<code>\u0438\u0441\u0442\u0438\u043d\u0430<\/code>), <code>false<\/code> (<code>\u043b\u043e\u0436\u044c<\/code>), <code>maybe<\/code> (<code>\u043c\u043e\u0436\u0435\u0442<\/code>).<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b<\/strong> \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0434\u0432\u043e\u0439\u043d\u044b\u0445 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445, \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c\u0430\u044f \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0442\u0440\u0430\u0439\u0442\u043e\u043c <code>0t<\/code>. \u0422\u0438\u043f \u2014 <code>tryte *<\/code>. \u0421\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438.<\/p>\n<\/li>\n<\/ol>\n<h4>A.3. \u041d\u043e\u0442\u0430\u0446\u0438\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430<\/h4>\n<p>\u0413\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u043a\u0430 \u044f\u0437\u044b\u043a\u0430 T \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 EBNF (Extended Backus-Naur Form):<\/p>\n<ul>\n<li>\n<p><code>=<\/code> \u2014 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p><code>,<\/code> \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/li>\n<li>\n<p><code>|<\/code> \u2014 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430<\/p>\n<\/li>\n<li>\n<p><code>[ ... ]<\/code> \u2014 \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e (0 \u0438\u043b\u0438 1 \u0440\u0430\u0437)<\/p>\n<\/li>\n<li>\n<p><code>{ ... }<\/code> \u2014 \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435 (0 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0437)<\/p>\n<\/li>\n<li>\n<p><code>( ... )<\/code> \u2014 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430<\/p>\n<\/li>\n<li>\n<p><code>\"...\"<\/code> \u2014 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b<\/p>\n<\/li>\n<li>\n<p><code>(* ... *)<\/code> \u2014 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code>identifier = ( letter | \"_\" ) { letter | digit | \"_\" } .<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u0410.4. \u0427\u0442\u043e \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b<\/h4>\n<p>\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 (\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e), \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0442\u0438\u043f, \u043c\u0435\u0442\u043a\u0443 \u0438\u043b\u0438 \u0447\u043b\u0435\u043d \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b\/\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p><strong>\u041a\u043b\u0430\u0441\u0441\u044b \u043f\u0430\u043c\u044f\u0442\u0438:<\/strong><\/p>\n<ul>\n<li>\n<p><code>auto<\/code> (<code>\u0430\u0432\u0442\u043e<\/code>) \u2014 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e).<\/p>\n<\/li>\n<li>\n<p><code>extern<\/code> (<code>\u0432\u043d\u0435\u0448<\/code>) \u2014 \u0432\u043d\u0435\u0448\u043d\u0435\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0444\u0430\u0439\u043b\u0435.<\/p>\n<\/li>\n<li>\n<p><code>static<\/code> (<code>\u0441\u0442\u0430\u0442\u0438\u0447<\/code>) \u2014 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435 (\u0444\u0430\u0439\u043b) \u0438\u043b\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c\u0430\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f.<\/p>\n<\/li>\n<li>\n<p><code>register<\/code> (<code>\u0440\u0435\u0433\u0438\u0441\u0442\u0440<\/code>) \u2014 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u0442\u0438\u043f\u044b:<\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0422\u0438\u043f<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0420\u0430\u0437\u043c\u0435\u0440<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>trit<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 \u0442\u0440\u0438\u0442 (\u20131, 0, +1)<\/p>\n<\/td>\n<td>\n<p align=\"left\">1 \u0442\u0440\u0438\u0442<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tryte<\/code> \/ <code>tint<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0426\u0435\u043b\u043e\u0435 (\u0441\u0438\u043d\u043e\u043d\u0438\u043c\u044b)<\/p>\n<\/td>\n<td>\n<p align=\"left\">9 \u0442\u0440\u0438\u0442\u043e\u0432 (1 \u0442\u0440\u0430\u0439\u0442)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tlong<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u043b\u0438\u043d\u043d\u043e\u0435 \u0446\u0435\u043b\u043e\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">18 \u0442\u0440\u0438\u0442\u043e\u0432 (2 \u0442\u0440\u0430\u0439\u0442\u0430)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tlong long<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0432\u0435\u0440\u0445\u0434\u043b\u0438\u043d\u043d\u043e\u0435 \u0446\u0435\u043b\u043e\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">27 \u0442\u0440\u0438\u0442\u043e\u0432 (3 \u0442\u0440\u0430\u0439\u0442\u0430)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tfloat<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">18 \u0442\u0440\u0438\u0442\u043e\u0432 (2 \u0442\u0440\u0430\u0439\u0442\u0430)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tdouble<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">36 \u0442\u0440\u0438\u0442\u043e\u0432 (4 \u0442\u0440\u0430\u0439\u0442\u0430)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>tril<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0440\u0438\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\">1 \u0442\u0440\u0438\u0442<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>void<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0443\u0441\u0442\u043e\u0439 \u0442\u0438\u043f<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2014<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0435 \u0442\u0438\u043f\u044b:<\/strong> \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438, \u043c\u0430\u0441\u0441\u0438\u0432\u044b, \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f.<\/p>\n<p><strong>\u041a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b:<\/strong> <code>const<\/code> (<code>\u043a\u043e\u043d\u0441\u0442<\/code>) \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043e; <code>volatile<\/code> (<code>\u0438\u0437\u043c\u0435\u043d\u0447<\/code>) \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0444\u0430\u043a\u0442\u043e\u0440\u0430\u043c\u0438.<\/p>\n<h4>\u0410.5. \u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 Lvalues<\/h4>\n<p><strong>\u041e\u0431\u044a\u0435\u043a\u0442<\/strong> \u2014 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u0438, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430.<\/p>\n<p><strong>Lvalue<\/strong> \u2014 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0435\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 (\u0438\u043c\u0435\u0435\u0442 \u0430\u0434\u0440\u0435\u0441). \u041a lvalue \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f: \u0438\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 (<code>a[i]<\/code>), \u043f\u043e\u043b\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 (<code>s.m<\/code>, <code>p-&gt;m<\/code>), \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 (<code>*p<\/code>).<\/p>\n<p>\u041c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c\u043e\u0435 lvalue \u2014 lvalue, \u043d\u0435 \u0438\u043c\u0435\u044e\u0449\u0435\u0435 \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 <code>const<\/code> \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0449\u0435\u0435\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c. \u0422\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c\u043e\u0435 lvalue \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u043e\u044f\u0442\u044c \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f.<\/p>\n<h4>\u0410.6. \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h4>\n<p><strong>\u041d\u0435\u044f\u0432\u043d\u044b\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u041f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 <\/strong><code><strong>trit<\/strong><\/code><strong>:<\/strong> <code>trit<\/code> \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e <code>tint<\/code> \u0432 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445.<\/p>\n<\/li>\n<li>\n<p><strong>\u0426\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/strong> \u043c\u0435\u043d\u044c\u0448\u0438\u0439 \u0446\u0435\u043b\u044b\u0439 \u0442\u0438\u043f \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e: <code>tint<\/code> \u2192 <code>tlong<\/code> \u2192 <code>tlong long<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0426\u0435\u043b\u044b\u0435 \u2192 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435:<\/strong> \u0446\u0435\u043b\u044b\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0442\u0441\u044f \u0432 <code>tfloat<\/code> \u0438\u043b\u0438 <code>tdouble<\/code> \u043f\u0440\u0438 \u0441\u043c\u0435\u0448\u0430\u043d\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445.<\/p>\n<\/li>\n<li>\n<p><strong>\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435:<\/strong> <code>tfloat<\/code> \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e <code>tdouble<\/code> \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<li>\n<p><code><strong>tril<\/strong><\/code><strong> \u2194 <\/strong><code><strong>trit<\/strong><\/code><strong>:<\/strong> \u0432\u0437\u0430\u0438\u043c\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u044b\u0435 \u043d\u0435\u044f\u0432\u043d\u044b\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u042f\u0432\u043d\u044b\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f (\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435):<\/strong><\/p>\n<pre><code>(tfloat) a    \/\/ tint \u2192 tfloat(tint) 3.14   \/\/ tdouble \u2192 tint (\u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0423\u0441\u0435\u0447\u0435\u043d\u0438\u0435:<\/strong> \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0431\u043e\u043b\u0435\u0435 \u0448\u0438\u0440\u043e\u043a\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0443\u0437\u043a\u043e\u043c\u0443 \u0443\u0441\u0435\u043a\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0442\u0440\u0438\u0442\u043e\u0432. \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p><strong>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u0446\u0435\u043b\u044b\u0439:<\/strong> \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 (\u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u043a \u043d\u0443\u043b\u044e).<\/p>\n<h4>\u0410.7. \u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>\u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 (\u043e\u0442 \u0432\u044b\u0441\u0448\u0435\u0433\u043e \u043a \u043d\u0438\u0437\u0448\u0435\u043c\u0443):<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0410\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>++<\/code> <code>--<\/code> (\u043f\u043e\u0441\u0442\u0444\u0438\u043a\u0441\u043d\u044b\u0435) <code>()<\/code> <code>[]<\/code> <code>.<\/code> <code>-&gt;<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">2<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>++<\/code> <code>--<\/code> (\u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043d\u044b\u0435) <code>+<\/code> <code>-<\/code> <code>!<\/code> <code>~<\/code> <code>*<\/code> <code>&amp;<\/code> <code>sizeof<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2190<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">3<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>*<\/code> <code>\/<\/code> <code>%<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">4<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>+<\/code> <code>-<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">5<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>&lt;&lt;<\/code> <code>&gt;&gt;<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">6<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>&lt;<\/code> <code>&gt;<\/code> <code>&lt;=<\/code> <code>&gt;=<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">7<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>==<\/code> <code>!=<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">8<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>&amp;<\/code> (\u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">9<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>^<\/code> (\u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u0430\u044f \u0441\u0443\u043c\u043c\u0430)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">10<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>|<\/code> (\u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">11<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>&amp;&amp;<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">12<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>||<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">13<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>??<\/code> <code>:?<\/code> <code>:!<\/code> (\u0442\u0440\u0438\u043d\u0430\u0440\u043d\u044b\u0439)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2190<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">14<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>=<\/code> <code>+=<\/code> <code>-=<\/code> <code>*=<\/code> <code>\/=<\/code> <code>%=<\/code> <code>&lt;&lt;=<\/code> <code>&gt;&gt;=<\/code> <code>&amp;=<\/code> <code>^=<\/code> <code>|=<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2190<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u0410.7.1. \u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f:<\/strong> \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430, \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b, <code>( \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 )<\/code>.<\/p>\n<p><strong>\u0410.7.2. \u041f\u043e\u0441\u0442\u0444\u0438\u043a\u0441\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>expr[expr]<\/code> \u2014 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 (\u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e <code>*(expr + expr)<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>expr(args)<\/code> \u2014 \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p><code>expr.member<\/code> \u2014 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u043b\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b\/\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><code>expr-&gt;member<\/code> \u2014 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u043e\u043b\u044e \u0447\u0435\u0440\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (\u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e <code>(*expr).member<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>expr++<\/code>, <code>expr--<\/code> \u2014 \u043f\u043e\u0441\u0442\u0444\u0438\u043a\u0441\u043d\u044b\u0439 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\/\u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0410.7.3. \u0423\u043d\u0430\u0440\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>++expr<\/code>, <code>--expr<\/code> \u2014 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043d\u044b\u0439 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\/\u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442<\/p>\n<\/li>\n<li>\n<p><code>+expr<\/code> \u2014 \u0443\u043d\u0430\u0440\u043d\u044b\u0439 \u043f\u043b\u044e\u0441<\/p>\n<\/li>\n<li>\n<p><code>-expr<\/code> \u2014 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p><code>!expr<\/code> \u2014 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435 (\u043c\u0435\u043d\u044f\u0435\u0442 <code>+<\/code> \u043d\u0430 <code>-<\/code>, <code>-<\/code> \u043d\u0430 <code>+<\/code>, <code>0<\/code> \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f <code>0<\/code>; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>tril<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>~expr<\/code> \u2014 \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u043e\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435 (\u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0440\u0438\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u0437\u043d\u0430\u043a)<\/p>\n<\/li>\n<li>\n<p><code>*expr<\/code> \u2014 \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f<\/p>\n<\/li>\n<li>\n<p><code>&amp;expr<\/code> \u2014 \u0432\u0437\u044f\u0442\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u0430<\/p>\n<\/li>\n<li>\n<p><code>sizeof expr<\/code> \u0438\u043b\u0438 <code>sizeof(type)<\/code> \u2014 \u0440\u0430\u0437\u043c\u0435\u0440 \u0432 \u0442\u0440\u0430\u0439\u0442\u0430\u0445<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0410.7.4. \u041c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0438\u043a\u0430\u0442\u0438\u0432\u043d\u044b\u0435:<\/strong> <code>*<\/code>, <code>\/<\/code>, <code>%<\/code>. \u0414\u0435\u043b\u0435\u043d\u0438\u0435 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u0435\u0442\u0441\u044f \u043a \u2013\u221e.<\/p>\n<p><strong>\u0410.7.5. \u0410\u0434\u0434\u0438\u0442\u0438\u0432\u043d\u044b\u0435:<\/strong> <code>+<\/code>, <code>-<\/code>.<\/p>\n<p><strong>\u0410.7.6. \u0421\u0434\u0432\u0438\u0433\u0438:<\/strong> <code>&lt;&lt;<\/code> \u2014 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 3\u207f; <code>&gt;&gt;<\/code> \u2014 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0434\u0432\u0438\u0433 \u0432\u043f\u0440\u0430\u0432\u043e (\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 3\u207f \u0441 \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435\u043c \u0432\u043d\u0438\u0437).<\/p>\n<p><strong>\u0410.7.7. \u041e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f:<\/strong> <code>&lt;<\/code>, <code>&gt;<\/code>, <code>&lt;=<\/code>, <code>&gt;=<\/code> \u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 <code>tril<\/code>.<\/p>\n<p><strong>\u0410.7.8. \u0420\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430:<\/strong> <code>==<\/code>, <code>!=<\/code> \u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 <code>tril<\/code>.<\/p>\n<p><strong>\u0410.7.9. \u041f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>&amp;<\/code> \u2014 \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c<\/p>\n<\/li>\n<li>\n<p><code>^<\/code> \u2014 \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e 3 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430<\/p>\n<\/li>\n<li>\n<p><code>|<\/code> \u2014 \u043f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0410.7.10. \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>&amp;&amp;<\/code> \u2014 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0418 (\u043c\u0438\u043d\u0438\u043c\u0443\u043c)<\/p>\n<\/li>\n<li>\n<p><code>||<\/code> \u2014 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0418\u041b\u0418 (\u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c)<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u0430 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u0434\u0430.<\/p>\n<p><strong>\u0410.7.11. \u0422\u0440\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440:<\/strong><\/p>\n<pre><code>\u0443\u0441\u043b\u043e\u0432\u0438\u0435 ?? \u0432\u044b\u0440\u0430\u04361 :? \u0432\u044b\u0440\u0430\u04362 :! \u0432\u044b\u0440\u0430\u04363<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 <code>true<\/code> \u2192 \u0432\u044b\u0440\u0430\u04361, <code>maybe<\/code> \u2192 \u0432\u044b\u0440\u0430\u04362, <code>false<\/code> \u2192 \u0432\u044b\u0440\u0430\u04363.<\/p>\n<p><strong>\u0410.7.12. \u041f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435:<\/strong> <code>=<\/code>, <code>+=<\/code>, <code>-=<\/code>, <code>*=<\/code>, <code>\/=<\/code>, <code>%=<\/code>, <code>&lt;&lt;=<\/code>, <code>&gt;&gt;=<\/code>, <code>&amp;=<\/code>, <code>|=<\/code>, <code>^=<\/code>.<\/p>\n<p><strong>\u0410.7.13. \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f:<\/strong> \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u044b \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 <code>case<\/code>, \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u0445 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445.<\/p>\n<h4>\u0410.8. \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f<\/h4>\n<p>\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434:<\/p>\n<pre><code>declaration-specifiers init-declarator-list ;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u0430\u043c\u044f\u0442\u0438:<\/strong> <code>auto<\/code>, <code>extern<\/code>, <code>static<\/code>, <code>register<\/code>, <code>typedef<\/code>. \u041d\u0435 \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0438.<\/p>\n<p><strong>\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0442\u0438\u043f\u0430:<\/strong> <code>void<\/code>, <code>tint<\/code>\/<code>tryte<\/code>, <code>tlong<\/code>, <code>tlong long<\/code>, <code>trit<\/code>, <code>tril<\/code>, <code>tfloat<\/code>, <code>tdouble<\/code>, <code>signed<\/code>, <code>unsigned<\/code>, <code>struct<\/code>\/<code>union<\/code>-\u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, <code>enum<\/code>-\u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, <code>typedef<\/code>-\u0438\u043c\u044f.<\/p>\n<p><strong>\u041a\u0432\u0430\u043b\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b:<\/strong> <code>const<\/code>, <code>volatile<\/code>.<\/p>\n<p><strong>\u041e\u0431\u044a\u044f\u0432\u0438\u0442\u0435\u043b\u0438:<\/strong> \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p><code>*<\/code> \u2014 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c<\/p>\n<\/li>\n<li>\n<p><code>[n]<\/code> \u2014 \u043c\u0430\u0441\u0441\u0438\u0432<\/p>\n<\/li>\n<li>\n<p><code>(params)<\/code> \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0421\u043a\u0430\u043b\u044f\u0440\u044b: <code>= \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/code><\/p>\n<\/li>\n<li>\n<p>\u0410\u0433\u0440\u0435\u0433\u0430\u0442\u044b: <code>= { \u0441\u043f\u0438\u0441\u043e\u043a }<\/code><\/p>\n<\/li>\n<li>\n<p>\u0421\u0442\u0440\u043e\u043a\u0438: <code>= \"\u0441\u0442\u0440\u043e\u043a\u0430\"<\/code><\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0418\u043c\u0435\u043d\u0430 \u0442\u0438\u043f\u043e\u0432:<\/strong> \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u0435\u043b\u044f \u0431\u0435\u0437 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u0445 \u0438 <code>sizeof<\/code>.<\/p>\n<p><code><strong>typedef<\/strong><\/code><strong>:<\/strong> \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0441\u0438\u043d\u043e\u043d\u0438\u043c \u0442\u0438\u043f\u0430. \u041d\u0435 \u0432\u0432\u043e\u0434\u0438\u0442 \u043d\u043e\u0432\u044b\u0439 \u0442\u0438\u043f, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c.<\/p>\n<p><strong>\u042d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0442\u0438\u043f\u043e\u0432:<\/strong> \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u0430\u044f \u2014 \u0434\u0432\u0430 \u0442\u0438\u043f\u0430 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u044b, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 (\u0434\u043b\u044f <code>typedef<\/code> \u2014 \u043f\u043e \u0438\u043c\u0435\u043d\u0438).<\/p>\n<h4>\u0410.9. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/h4>\n<p><strong>\u041f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438:<\/strong><\/p>\n<pre><code>case \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 : \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044fdefault : \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0435\u0442\u043a\u0430 : \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f-\u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435:<\/strong> <code>\u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 ;<\/code><\/p>\n<p><strong>\u0421\u043e\u0441\u0442\u0430\u0432\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f (\u0431\u043b\u043e\u043a):<\/strong> <code>{ \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f? \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438? }<\/code><\/p>\n<p><strong>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0432\u044b\u0431\u043e\u0440\u0430:<\/strong><\/p>\n<pre><code>if (\u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435) \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f[maybe \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f][else \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f]<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u0435\u0442\u0432\u0438 <code>maybe<\/code> \u0438 <code>else<\/code> \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b \u0438 \u043c\u043e\u0433\u0443\u0442 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435.<\/p>\n<pre><code>switch (\u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435) \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0446\u0438\u043a\u043b\u0430:<\/strong><\/p>\n<pre><code>while (\u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435) \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044fdo \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f while (\u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435) ;for (\u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435? ; \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435? ; \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435?) \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430:<\/strong><\/p>\n<pre><code>break ;continue ;return \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435? ;goto \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 ;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u0410.10. \u0412\u043d\u0435\u0448\u043d\u0438\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f<\/h4>\n<p>\u0415\u0434\u0438\u043d\u0438\u0446\u0430 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439:<\/p>\n<pre><code>translation-unit = { external-definition }external-definition = function-definition | declaration<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/strong><\/p>\n<pre><code>declaration-specifiers declarator declaration-list? compound-statement<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0442\u0438\u043f \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <code>tint<\/code>.<\/p>\n<p><strong>\u0412\u043d\u0435\u0448\u043d\u0438\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445:<\/strong> \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c \u043f\u0430\u043c\u044f\u0442\u0438 <code>extern<\/code> \u0438\u043b\u0438 \u0431\u0435\u0437 \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<h4>\u0410.11. \u041e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0438 \u0441\u0432\u044f\u0437\u0438<\/h4>\n<p><strong>\u041e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 (scope):<\/strong><\/p>\n<ul>\n<li>\n<p><strong>\u0424\u0430\u0439\u043b\u043e\u0432\u0430\u044f (\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f):<\/strong> \u043e\u0442 \u0442\u043e\u0447\u043a\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>\u0411\u043b\u043e\u0447\u043d\u0430\u044f (\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f):<\/strong> \u043e\u0442 \u0442\u043e\u0447\u043a\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0431\u043b\u043e\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u043d\u0430\u044f:<\/strong> \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f:<\/strong> \u0434\u043b\u044f \u043c\u0435\u0442\u043e\u043a <code>goto<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0421\u0432\u044f\u0437\u0438 (linkage):<\/strong><\/p>\n<ul>\n<li>\n<p><strong>\u0412\u043d\u0435\u0448\u043d\u044f\u044f (<\/strong><code><strong>extern<\/strong><\/code><strong>):<\/strong> \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f (<\/strong><code><strong>static<\/strong><\/code><strong>):<\/strong> \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0443\u0441\u0442\u0430\u044f:<\/strong> \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439, <code>typedef<\/code>.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0410.12. \u041f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h4>\n<p>\u041f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 T \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441 <code>#<\/code> \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0441\u0442\u0440\u043e\u043a\u0438. \u0412\u0441\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b \u0438\u043c\u0435\u044e\u0442 \u0440\u0443\u0441\u0441\u043a\u0438\u0435 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u044b.<\/p>\n<p><strong>\u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>#include &lt;\u0444\u0430\u0439\u043b&gt;<\/code> \/ <code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;\u0444\u0430\u0439\u043b&gt;<\/code> \u2014 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430<\/p>\n<\/li>\n<li>\n<p><code>#include \"\u0444\u0430\u0439\u043b\"<\/code> \/ <code>#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \"\u0444\u0430\u0439\u043b\"<\/code> \u2014 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430<\/p>\n<\/li>\n<li>\n<p><code>#define \u0438\u043c\u044f \u0442\u0435\u043a\u0441\u0442<\/code> \/ <code>#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u043c\u044f \u0442\u0435\u043a\u0441\u0442<\/code> \u2014 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u0430 \u0431\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><code>#define \u0438\u043c\u044f(\u043f\u0430\u0440\u0430\u043c) \u0442\u0435\u043a\u0441\u0442<\/code> \/ <code>#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u043c\u044f(\u043f\u0430\u0440\u0430\u043c) \u0442\u0435\u043a\u0441\u0442<\/code> \u2014 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><code>#undef \u0438\u043c\u044f<\/code> \/ <code>#\u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u043c\u044f<\/code> \u2014 \u043e\u0442\u043c\u0435\u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043c\u0430\u043a\u0440\u043e\u0441\u0430<\/p>\n<\/li>\n<li>\n<p><code>#if \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/code> \/ <code>#\u0435\u0441\u043b\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/code> \u2014 \u0443\u0441\u043b\u043e\u0432\u043d\u0430\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><code>#ifdef \u0438\u043c\u044f<\/code> \/ <code>#\u0435\u0441\u043b\u0438\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u0438\u043c\u044f<\/code> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0441\u0442\u0438 \u043c\u0430\u043a\u0440\u043e\u0441\u0430<\/p>\n<\/li>\n<li>\n<p><code>#ifndef \u0438\u043c\u044f<\/code> \/ <code>#\u0435\u0441\u043b\u0438\u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u0438\u043c\u044f<\/code> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0441\u0442\u0438 \u043c\u0430\u043a\u0440\u043e\u0441\u0430<\/p>\n<\/li>\n<li>\n<p><code>#else<\/code> \/ <code>#\u0438\u043d\u0430\u0447\u0435<\/code> \u2014 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0432\u0435\u0442\u0432\u044c<\/p>\n<\/li>\n<li>\n<p><code>#elif \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/code> \/ <code>#\u0438\u043b\u0438\u0435\u0441\u043b\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/code> \u2014 \u0446\u0435\u043f\u043e\u0447\u043a\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0439<\/p>\n<\/li>\n<li>\n<p><code>#endif<\/code> \/ <code>#\u043a\u043e\u043d\u0447\u0438\u0442\u044c<\/code> \u2014 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p><code>#error \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435<\/code> \/ <code>#\u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435<\/code> \u2014 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0448\u0438\u0431\u043a\u0438<\/p>\n<\/li>\n<li>\n<p><code>#line \u0447\u0438\u0441\u043b\u043e \"\u0444\u0430\u0439\u043b\"<\/code> \/ <code>#\u0441\u0442\u0440\u043e\u043a\u0430 \u0447\u0438\u0441\u043b\u043e \"\u0444\u0430\u0439\u043b\"<\/code> \u2014 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0440\u043e\u043a<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432:<\/strong><\/p>\n<ul>\n<li>\n<p><code>#<\/code> \u2014 \u0441\u0442\u0440\u043e\u043a\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><code>##<\/code> \u2014 \u0441\u043a\u043b\u0435\u0439\u043a\u0430 \u0442\u043e\u043a\u0435\u043d\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>__T_LINE__<\/code> \u2014 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0438<\/p>\n<\/li>\n<li>\n<p><code>__T_FILE__<\/code> \u2014 \u0438\u043c\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>__T_VERSION__<\/code> \u2014 \u0432\u0435\u0440\u0441\u0438\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 T<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445 <code>#if<\/code> \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 <code>true<\/code> \u0440\u0430\u0432\u043d\u0430 1, <code>false<\/code> \u0440\u0430\u0432\u043d\u0430 0. \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 <code>maybe<\/code> \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0430 \u2014 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a \u0446\u0435\u043b\u043e\u043c\u0443.<\/p>\n<h4>\u0410.13. \u0413\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u043a\u0430<\/h4>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u043f\u043e\u043b\u043d\u0430\u044f EBNF-\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u043a\u0430 \u044f\u0437\u044b\u043a\u0430 T.<\/p>\n<pre><code>(* ============================================================   \u041f\u043e\u043b\u043d\u0430\u044f EBNF-\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u043a\u0430 \u044f\u0437\u044b\u043a\u0430 T   ============================================================ *)(* --- \u041b\u0435\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 --- *)trit_digit         = \"-\" | \"0\" | \"+\" .identifier         = ( letter | \"_\" ) { letter | digit | \"_\" } .letter             = latin_letter | cyrillic_letter .latin_letter       = \"A\"..\"Z\" | \"a\"..\"z\" .cyrillic_letter    = \"\u0410\"..\"\u042f\" | \"\u0430\"..\"\u044f\" | \"\u0401\" | \"\u0451\" .digit              = \"0\"..\"9\" .decimal_suffix     = \"t\" | \"tl\" | \"tll\" .decimal_literal    = [ \"+\" | \"-\" ] digit { digit } decimal_suffix .balanced_prefix    = \"0t\" .balanced_digits    = trit_digit { trit_digit } [ \"_\" trit_digit ] .balanced_literal   = balanced_prefix balanced_digits .tryx_prefix        = \"0y\" .tryx_digit         = digit | \"A\"..\"Q\" | \"a\"..\"q\" .tryx_literal       = tryx_prefix tryx_digit { tryx_digit } .integer_literal    = decimal_literal | balanced_literal | tryx_literal .float_suffix       = \"f\" | \"d\" .decimal_float      = [ \"+\" | \"-\" ] digit { digit } \".\" digit { digit }                     [ \"e\" [ \"+\" | \"-\" ] digit { digit } ] [ float_suffix ] .balanced_float     = balanced_prefix mantissa_part \"e\" exponent_part float_suffix .mantissa_part      = trit_digit { trit_digit } [ \"_\" trit_digit ]                     \".\" trit_digit { trit_digit } .exponent_part      = trit_digit { trit_digit } .float_literal      = decimal_float | balanced_float .char_literal       = \"'\" ( trit_digit | any_character ) \"'\" .string_literal     = '\"' { any_character } '\"' .true_const         = \"true\" | \"\u0438\u0441\u0442\u0438\u043d\u0430\" .false_const        = \"false\" | \"\u043b\u043e\u0436\u044c\" .maybe_const        = \"maybe\" | \"\u043c\u043e\u0436\u0435\u0442\" .constant           = integer_literal | float_literal | char_literal                   | string_literal | true_const | false_const | maybe_const .(* --- \u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f --- *)primary_expr       = identifier | constant | \"(\" expression \")\" .postfix_expr       = primary_expr                   | postfix_expr \"[\" expression \"]\"                   | postfix_expr \"(\" [ argument_list ] \")\"                   | postfix_expr \".\" identifier                   | postfix_expr \"-&gt;\" identifier                   | postfix_expr \"++\"                   | postfix_expr \"--\" .argument_list      = expression { \",\" expression } .unary_expr         = postfix_expr                   | \"++\" unary_expr                   | \"--\" unary_expr                   | unary_operator unary_expr .unary_operator     = \"+\" | \"-\" | \"!\" | \"~\" | \"*\" | \"&amp;\"                   | \"sizeof\" | \"\u0440\u0430\u0437\u043c\u0435\u0440\" .multiplicative_expr = unary_expr { ( \"*\" | \"\/\" | \"%\" ) unary_expr } .additive_expr      = multiplicative_expr { ( \"+\" | \"-\" ) multiplicative_expr } .shift_expr         = additive_expr { ( \"&lt;&lt;\" | \"&gt;&gt;\" ) additive_expr } .relational_expr    = shift_expr { ( \"&lt;\" | \"&gt;\" | \"&lt;=\" | \"&gt;=\" ) shift_expr } .equality_expr      = relational_expr { ( \"==\" | \"!=\" ) relational_expr } .bitwise_and_expr   = equality_expr { \"&amp;\" equality_expr } .bitwise_xor_expr   = bitwise_and_expr { \"^\" bitwise_and_expr } .bitwise_or_expr    = bitwise_xor_expr { \"|\" bitwise_xor_expr } .logical_and_expr   = bitwise_or_expr { \"&amp;&amp;\" bitwise_or_expr } .logical_or_expr    = logical_and_expr { \"||\" logical_and_expr } .ternary_expr       = logical_or_expr                     \"??\" expression \":?\" expression \":!\" expression .assignment_expr    = ternary_expr                   | unary_expr assignment_operator assignment_expr .assignment_operator = \"=\" | \"+=\" | \"-=\" | \"*=\" | \"\/=\" | \"%=\"                     | \"&lt;&lt;=\" | \"&gt;&gt;=\" | \"&amp;=\" | \"|=\" | \"^=\" .expression         = assignment_expr .(* --- \u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f --- *)void_type          = \"void\" | \"\u043f\u0443\u0441\u0442\u043e\" .tint_type          = \"tint\" | \"\u0442\u0446\u0435\u043b\" .tlong_type         = \"tlong\" | \"\u0442\u0434\u043b\u0438\u043d\" .tlong_long_type    = \"tlong\" \"long\" | \"\u0442\u0434\u043b\u0438\u043d\u0434\u043b\u0438\u043d\" .tryte_type         = \"tryte\" | \"\u0442\u0440\u0430\u0439\u0442\" .trit_type          = \"trit\" | \"\u0442\u0440\u0438\u0442\" .tril_type          = \"tril\" | \"\u0442\u0440\u0438\u043b\" .tfloat_type        = \"tfloat\" | \"\u0442\u0432\u0435\u0449\" .tdouble_type       = \"tdouble\" | \"\u0442\u0434\u0432\u043e\u0439\u043d\" .signed_spec        = \"signed\" | \"\u0437\u043d\u0430\u043a\" .unsigned_spec      = \"unsigned\" | \"\u0431\u0435\u0437\u0437\u043d\u0430\u043a\" .type_specifier     = void_type | tint_type | tlong_type | tlong_long_type                   | tryte_type | trit_type | tril_type                   | tfloat_type | tdouble_type                   | signed_spec | unsigned_spec                   | struct_or_union_specifier | enum_specifier                   | typedef_name .struct_or_union    = \"struct\" | \"\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\" | \"union\" | \"\u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\" .struct_or_union_specifier = struct_or_union [ identifier ] \"{\" { struct_declaration } \"}\"                         | struct_or_union identifier .struct_declaration = type_specifier struct_declarator_list \";\" .struct_declarator_list = struct_declarator { \",\" struct_declarator } .struct_declarator  = declarator | [ declarator ] \":\" expression .enum_kw            = \"enum\" | \"\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435\" .enum_specifier     = enum_kw [ identifier ] \"{\" enumerator_list \"}\"                   | enum_kw identifier .enumerator_list    = enumerator { \",\" enumerator } .enumerator         = identifier [ \"=\" expression ] .type_qualifier     = \"const\" | \"\u043a\u043e\u043d\u0441\u0442\" | \"volatile\" | \"\u0438\u0437\u043c\u0435\u043d\u0447\" .declaration_specifiers = ( type_specifier | type_qualifier )                         { type_specifier | type_qualifier } .declarator         = pointer_decl direct_declarator | direct_declarator .direct_declarator  = identifier                   | \"(\" declarator \")\"                   | direct_declarator \"[\" [ expression ] \"]\"                   | direct_declarator \"(\" parameter_list \")\"                   | direct_declarator \"(\" \")\" .pointer_decl       = \"*\" [ type_qualifier { type_qualifier } ] [ pointer_decl ] .parameter_list     = parameter_declaration { \",\" parameter_declaration } .parameter_declaration = declaration_specifiers [ declarator | abstract_declarator ] .abstract_declarator = pointer_decl [ direct_abstract_declarator ]                    | direct_abstract_declarator .direct_abstract_declarator = \"(\" abstract_declarator \")\"                           | \"[\" [ expression \"]\"                           | \"(\" [ parameter_list ] \")\" .initializer        = expression | \"{\" initializer_list [ \",\" ] \"}\" .initializer_list   = initializer { \",\" initializer } .declaration        = declaration_specifiers [ init_declarator_list ] \";\" .init_declarator_list = init_declarator { \",\" init_declarator } .init_declarator    = declarator [ \"=\" initializer ] .(* --- \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b --- *)if_kw              = \"if\" | \"\u0435\u0441\u043b\u0438\" .maybe_kw           = \"maybe\" | \"\u043c\u043e\u0436\u0435\u0442\" .else_kw            = \"else\" | \"\u0438\u043d\u0430\u0447\u0435\" .switch_kw          = \"switch\" | \"\u0432\u044b\u0431\u043e\u0440\" .case_kw            = \"case\" | \"\u0441\u043b\u0443\u0447\u0430\u0439\" .default_kw         = \"default\" | \"\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u0435\" .while_kw           = \"while\" | \"\u043f\u043e\u043a\u0430\" .do_kw              = \"do\" | \"\u0434\u0435\u043b\u0430\u0442\u044c\" .for_kw             = \"for\" | \"\u0434\u043b\u044f\" .continue_kw        = \"continue\" | \"\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c\" .break_kw           = \"break\" | \"\u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c\" .return_kw          = \"return\" | \"\u0432\u043e\u0437\u0432\u0440\u0430\u0442\" .goto_kw            = \"goto\" | \"\u043f\u0435\u0440\u0435\u0439\u0442\u0438\" .statement          = expression_statement                   | compound_statement                   | selection_statement                   | switch_statement                   | labeled_statement                   | iteration_statement                   | jump_statement .expression_statement = [ expression ] \";\" .compound_statement   = \"{\" { declaration | statement } \"}\" .selection_statement  = if_kw \"(\" expression \")\" statement                       ( [ maybe_kw statement ] [ else_kw statement ]                       | [ else_kw statement ] [ maybe_kw statement ] ) .switch_statement     = switch_kw \"(\" expression \")\" statement .case_label           = case_kw expression \":\" .default_label        = default_kw \":\" .labeled_statement    = case_label statement | default_label statement .iteration_statement  = while_kw \"(\" expression \")\" statement                     | do_kw statement while_kw \"(\" expression \")\" \";\"                     | for_kw \"(\" [ expression ] \";\" [ expression ] \";\"                               [ expression ] \")\" statement .jump_statement       = continue_kw \";\"                     | break_kw \";\"                     | return_kw [ expression ] \";\"                     | goto_kw identifier \";\" .(* --- \u0412\u043d\u0435\u0448\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f --- *)extern_kw          = \"extern\" | \"\u0432\u043d\u0435\u0448\" .static_kw          = \"static\" | \"\u0441\u0442\u0430\u0442\u0438\u0447\" .auto_kw            = \"auto\" | \"\u0430\u0432\u0442\u043e\" .register_kw        = \"register\" | \"\u0440\u0435\u0433\u0438\u0441\u0442\u0440\" .inline_kw          = \"inline\" | \"\u0432\u0441\u0442\u0440\u043e\u0435\u043d\" .typedef_kw         = \"typedef\" | \"\u0442\u0438\u043f\u0440\u0435\u0433\" .translation_unit   = { external_definition } .external_definition = function_definition | declaration .function_definition  = declaration_specifiers declarator                      [ declaration_list ] compound_statement .declaration_list    = { declaration } .<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>B. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430<\/h3>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u044f\u0437\u044b\u043a\u0430 T. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0434\u043b\u044f \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f\u043c, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 C.<\/p>\n<h4>B.1. \u0412\u0432\u043e\u0434-\u0432\u044b\u0432\u043e\u0434: <\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;tio.h&gt;<\/code> \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0442\u0438\u043f\u044b \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430.<\/p>\n<p><strong>\u0422\u0438\u043f\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>tFILE<\/code> \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u043e\u043a\u043e\u043c \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 (\u0430\u043d\u0430\u043b\u043e\u0433 <code>FILE<\/code>).<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u0438:<\/strong><\/p>\n<pre><code>tFILE *tfopen(const tryte *path, const tryte *mode);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b. <code>path<\/code> \u2014 \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443, <code>mode<\/code> \u2014 \u0440\u0435\u0436\u0438\u043c: <code>\"r\"<\/code> (\u0447\u0442\u0435\u043d\u0438\u0435), <code>\"w\"<\/code> (\u0437\u0430\u043f\u0438\u0441\u044c), <code>\"a\"<\/code> (\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435), <code>\"r+\"<\/code>, <code>\"w+\"<\/code>, <code>\"a+\"<\/code>. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 <code>tFILE<\/code> \u0438\u043b\u0438 <code>0t<\/code> \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n<pre><code>tint tfclose(tFILE *stream);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>0t<\/code> \u043f\u0440\u0438 \u0443\u0441\u043f\u0435\u0445\u0435 \u0438\u043b\u0438 <code>-1t<\/code> \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n<pre><code>tint tgetc(tFILE *stream);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0427\u0438\u0442\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0437 \u043f\u043e\u0442\u043e\u043a\u0430. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b (\u0442\u0438\u043f <code>tint<\/code>) \u0438\u043b\u0438 <code>0t<\/code> \u043f\u0440\u0438 \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0446\u0430 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<pre><code>tint tputc(tint c, tFILE *stream);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b <code>c<\/code> \u0432 \u043f\u043e\u0442\u043e\u043a. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u043b\u0438 <code>-1t<\/code> \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n<pre><code>tint tprintf(const tryte *format, ...);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0424\u043e\u0440\u043c\u0430\u0442\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434. \u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b: <code>%T<\/code> (tint), <code>%L<\/code> (tlong), <code>%LL<\/code> (tlong long), <code>%B<\/code> (\u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439), <code>%F<\/code> (tfloat), <code>%D<\/code> (tdouble), <code>%S<\/code> (\u0441\u0442\u0440\u043e\u043a\u0430), <code>%C<\/code> (\u0441\u0438\u043c\u0432\u043e\u043b), <code>%R<\/code> (tril).<\/p>\n<pre><code>tint tscanf(const tryte *format, ...);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0424\u043e\u0440\u043c\u0430\u0442\u043d\u044b\u0439 \u0432\u0432\u043e\u0434. \u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0442\u0435 \u0436\u0435, \u0447\u0442\u043e \u0438 \u0434\u043b\u044f <code>tprintf<\/code>.<\/p>\n<pre><code>void printbal(tryte x);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 (<code>+<\/code>, <code>0<\/code>, <code>-<\/code>).<\/p>\n<pre><code>void printtryte(tryte x);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<pre><code>void printtril(tril b);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: <code>true<\/code>, <code>maybe<\/code> \u0438\u043b\u0438 <code>false<\/code> (\u0438\u043b\u0438 \u0440\u0443\u0441\u0441\u043a\u0438\u0435 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u044b).<\/p>\n<pre><code>void printfloat(tfloat f);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u0442 <code>tfloat<\/code> \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<pre><code>void printdouble(tdouble d);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u0442 <code>tdouble<\/code> \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<pre><code>tryte scant();<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0427\u0438\u0442\u0430\u0435\u0442 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 <code>tryte<\/code>.<\/p>\n<pre><code>tfloat scanf();<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0427\u0438\u0442\u0430\u0435\u0442 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0442\u0438\u043f\u0430 <code>tfloat<\/code> \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430.<\/p>\n<pre><code>tdouble scand();<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0427\u0438\u0442\u0430\u0435\u0442 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0442\u0438\u043f\u0430 <code>tdouble<\/code> \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430.<\/p>\n<p><strong>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043f\u043e\u0442\u043e\u043a\u0438:<\/strong><\/p>\n<ul>\n<li>\n<p><code>tstdin<\/code> \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u0432\u043e\u0434 (\u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 <code>0t<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>tstdout<\/code> \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 (\u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 <code>1t<\/code>)<\/p>\n<\/li>\n<li>\n<p><code>tstderr<\/code> \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u043e\u0448\u0438\u0431\u043e\u043a (\u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 <code>2t<\/code>)<\/p>\n<\/li>\n<\/ul>\n<h4>B.2. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u0430: <\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;tctype.h&gt;<\/code> \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.<\/p>\n<pre><code>tint tisdigit(tryte c);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0439 \u0446\u0438\u0444\u0440\u043e\u0439 (<code>0<\/code>\u2013<code>9<\/code>).<\/p>\n<pre><code>tint tisspace(tryte c);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u043c (\u043f\u0440\u043e\u0431\u0435\u043b, \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u044f, \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438, \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u043a\u0430\u0440\u0435\u0442\u043a\u0438).<\/p>\n<pre><code>tint tistrit(tryte c);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u0446\u0438\u0444\u0440\u043e\u0439 (<code>-<\/code>, <code>0<\/code>, <code>+<\/code>).<\/p>\n<pre><code>tint tisalpha(tryte c);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u0431\u0443\u043a\u0432\u043e\u0439 (\u043b\u0430\u0442\u0438\u043d\u0441\u043a\u043e\u0439 \u0438\u043b\u0438 \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0439).<\/p>\n<pre><code>tint tisalnum(tryte c);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u0431\u0443\u043a\u0432\u043e\u0439 \u0438\u043b\u0438 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0439 \u0446\u0438\u0444\u0440\u043e\u0439.<\/p>\n<pre><code>tint tisupper(tryte c);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0431\u0443\u043a\u0432\u043e\u0439.<\/p>\n<pre><code>tint tislower(tryte c);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u0441\u0442\u0440\u043e\u0447\u043d\u043e\u0439 \u0431\u0443\u043a\u0432\u043e\u0439.<\/p>\n<pre><code>tryte toupper(tryte c);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b \u0432 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u0439 (\u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e).<\/p>\n<pre><code>tryte tolower(tryte c);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b \u0432 \u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 (\u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e).<\/p>\n<h4>B.3. \u0424\u0443\u043d\u043a\u0446\u0438\u0438, \u043e\u043f\u0435\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438: <\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;tstring.h&gt;<\/code> \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 (\u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438 <code>tryte<\/code>, \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f <code>0t<\/code>).<\/p>\n<pre><code>tint tstrlen(const tryte *s);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438 (\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0434\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0435\u0433\u043e <code>0t<\/code>).<\/p>\n<pre><code>tryte *tstrcpy(tryte *dst, const tryte *src);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 <code>src<\/code> \u0432 <code>dst<\/code>, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0438\u0439 <code>0t<\/code>. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>dst<\/code>.<\/p>\n<pre><code>tryte *tstrcat(tryte *dst, const tryte *src);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 <code>src<\/code> \u0432 \u043a\u043e\u043d\u0435\u0446 <code>dst<\/code>. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>dst<\/code>.<\/p>\n<pre><code>tint tstrcmp(const tryte *s1, const tryte *s2);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041b\u0435\u043a\u0441\u0438\u043a\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442:<\/p>\n<ul>\n<li>\n<p><code>-1t<\/code> \u2014 \u0435\u0441\u043b\u0438 <code>s1 &lt; s2<\/code><\/p>\n<\/li>\n<li>\n<p><code>0t<\/code> \u2014 \u0435\u0441\u043b\u0438 <code>s1 == s2<\/code><\/p>\n<\/li>\n<li>\n<p><code>+1t<\/code> \u2014 \u0435\u0441\u043b\u0438 <code>s1 &gt; s2<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a: <code>- &lt; 0 &lt; +<\/code>.<\/p>\n<pre><code>tryte *tstrchr(const tryte *s, tryte c);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418\u0449\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 <code>c<\/code> \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 <code>s<\/code>. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0438\u043b\u0438 <code>0t<\/code>, \u0435\u0441\u043b\u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d.<\/p>\n<h4>B.4. \u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438: <\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;tmath.h&gt;<\/code> \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<pre><code>tdouble tsin(tdouble x);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u0438\u043d\u0443\u0441 \u0443\u0433\u043b\u0430 <code>x<\/code> (\u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445).<\/p>\n<pre><code>tdouble tcos(tdouble x);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u043e\u0441\u0438\u043d\u0443\u0441 \u0443\u0433\u043b\u0430 <code>x<\/code> (\u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445).<\/p>\n<pre><code>tdouble tsqrt(tdouble x);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u043a\u043e\u0440\u0435\u043d\u044c \u0438\u0437 <code>x<\/code>. \u0414\u043b\u044f \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>NaN<\/code>.<\/p>\n<pre><code>tdouble tfloor(tdouble x);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u0432\u043d\u0438\u0437 (\u043a \u2013\u221e).<\/p>\n<pre><code>tdouble tceil(tdouble x);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u0432\u0432\u0435\u0440\u0445 (\u043a +\u221e).<\/p>\n<pre><code>tint tabs(tint x);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0446\u0435\u043b\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430.<\/p>\n<pre><code>tfloat tfabs(tfloat x);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430.<\/p>\n<pre><code>tint tmin(tint x, tint y);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u0432\u0443\u0445 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b.<\/p>\n<pre><code>tint tmax(tint x, tint y);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0434\u0432\u0443\u0445 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b.<\/p>\n<pre><code>tfloat tfmin(tfloat x, tfloat y);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u0432\u0443\u0445 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b.<\/p>\n<pre><code>tfloat tfmax(tfloat x, tfloat y);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0434\u0432\u0443\u0445 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b.<\/p>\n<h4>B.5. \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u0449\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: <\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;tstdlib.h&gt;<\/code> \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u044c\u044e, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b.<\/p>\n<pre><code>void *tmalloc(tint n);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b\u0434\u0435\u043b\u044f\u0435\u0442 <code>n<\/code> \u0442\u0440\u0430\u0439\u0442\u043e\u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c \u0438\u043b\u0438 <code>0t<\/code> \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n<pre><code>void tfree(void *ptr);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u044c, \u0440\u0430\u043d\u0435\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e <code>tmalloc<\/code>, <code>trealloc<\/code> \u0438\u043b\u0438 <code>tcalloc<\/code>.<\/p>\n<pre><code>void *trealloc(void *ptr, tint n);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043e <code>n<\/code> \u0442\u0440\u0430\u0439\u0442\u043e\u0432. \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u043e \u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u0438\u0437 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0431\u043b\u043e\u043a \u0438\u043b\u0438 <code>0t<\/code> \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n<pre><code>void *tcalloc(tint n, tint size);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u044c \u0434\u043b\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438\u0437 <code>n<\/code> \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e <code>size<\/code> \u0442\u0440\u0430\u0439\u0442\u043e\u0432 \u043a\u0430\u0436\u0434\u044b\u0439. \u041f\u0430\u043c\u044f\u0442\u044c \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u0442\u0441\u044f. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0438\u043b\u0438 <code>0t<\/code> \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n<pre><code>void texit(tint status);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0441 \u043a\u043e\u0434\u043e\u043c \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 <code>status<\/code>. \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043e\u0447\u0438\u0441\u0442\u043a\u0443 (\u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0442.\u0434.).<\/p>\n<pre><code>tint trand(void);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0441\u0435\u0432\u0434\u043e\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0442\u0438\u043f\u0430 <code>tint<\/code> \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 \u20139841 \u0434\u043e +9841.<\/p>\n<pre><code>tint tsystem(const tryte *command);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u0434 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<h4>B.6. \u0414\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0430: <\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;tassert.h&gt;<\/code> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043c\u0430\u043a\u0440\u043e\u0441 <code>tassert<\/code>.<\/p>\n<pre><code>void tassert(tint expression);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 <code>expression<\/code> \u0440\u0430\u0432\u043d\u043e <code>false<\/code> (0), \u043c\u0430\u043a\u0440\u043e\u0441 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 (\u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430, \u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u0440\u043e\u043a\u0438, \u0442\u0435\u043a\u0441\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f) \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 <code>texit<\/code>. \u0415\u0441\u043b\u0438 <code>expression<\/code> \u0438\u0441\u0442\u0438\u043d\u043d\u043e, \u043c\u0430\u043a\u0440\u043e\u0441 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.<\/p>\n<p>\u041c\u0430\u043a\u0440\u043e\u0441 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0434 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c <code>&lt;tassert.h&gt;<\/code> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u043c\u0430\u043a\u0440\u043e\u0441 <code>TNDEBUG<\/code>:<\/p>\n<pre><code>#define TNDEBUG#include &lt;tassert.h&gt;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>B.7. \u0421\u043f\u0438\u0441\u043a\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b: <\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;tstdarg.h&gt;<\/code> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u043c\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p><strong>\u0422\u0438\u043f\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>tva_list<\/code> \u2014 \u0442\u0438\u043f \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0441\u043f\u0438\u0441\u043a\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041c\u0430\u043a\u0440\u043e\u0441\u044b:<\/strong><\/p>\n<pre><code>void tva_start(tva_list ap, last_named);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 <code>ap<\/code> \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432. <code>last_named<\/code> \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<pre><code>type tva_arg(tva_list ap, type);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0442\u0438\u043f\u0430 <code>type<\/code> \u0438 \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c.<\/p>\n<pre><code>void tva_end(tva_list ap);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u043e\u0431\u0445\u043e\u0434 \u0441\u043f\u0438\u0441\u043a\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<h4>B.8. \u0414\u0430\u043b\u044c\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b: <\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;tsetjmp.h&gt;<\/code> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043d\u0435\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u0432.<\/p>\n<p><strong>\u0422\u0438\u043f\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>tjmp_buf<\/code> \u2014 \u0442\u0438\u043f \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u0438:<\/strong><\/p>\n<pre><code>tint tsetjmp(tjmp_buf env);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432 <code>env<\/code>. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>0t<\/code> \u043f\u0440\u0438 \u043f\u0440\u044f\u043c\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435 \u0438 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0435 \u0438\u0437 <code>tlongjmp<\/code>.<\/p>\n<pre><code>void tlongjmp(tjmp_buf env, tint val);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d\u043d\u043e\u0435 \u0432 <code>env<\/code>. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0442\u0430\u043a, \u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0431\u044b <code>tsetjmp<\/code> \u0432\u0435\u0440\u043d\u0443\u043b\u0430 <code>val<\/code>.<\/p>\n<h4>B.9. \u0421\u0438\u0433\u043d\u0430\u043b\u044b: <\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;tsignal.h&gt;<\/code> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 (\u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439).<\/p>\n<p><strong>\u0422\u0438\u043f\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>tsig_atomic_t<\/code> \u2014 \u0446\u0435\u043b\u044b\u0439 \u0442\u0438\u043f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d \u0438\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p><code>void (*tsighandler_t)(tint)<\/code> \u2014 \u0442\u0438\u043f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e-\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u0438\u0433\u043d\u0430\u043b\u0430.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>TSIG_ERR<\/code> \u2014 \u043a\u043e\u0434 \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><code>TSIG_DFL<\/code> \u2014 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<\/li>\n<li>\n<p><code>TSIG_IGN<\/code> \u2014 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u0430.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0421\u0438\u0433\u043d\u0430\u043b\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>TSIGABRT<\/code> \u2014 \u0430\u0432\u0430\u0440\u0438\u0439\u043d\u043e\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><code>TSIGFPE<\/code> \u2014 \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><code>TSIGINT<\/code> \u2014 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 (Ctrl+C).<\/p>\n<\/li>\n<li>\n<p><code>TSIGSEGV<\/code> \u2014 \u043e\u0448\u0438\u0431\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<\/li>\n<li>\n<p><code>TSIGTERM<\/code> \u2014 \u0437\u0430\u043f\u0440\u043e\u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u0438:<\/strong><\/p>\n<pre><code>tsighandler_t tsignal(tint sig, tsighandler_t handler);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u0438\u0433\u043d\u0430\u043b\u0430 <code>sig<\/code>. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0438\u043b\u0438 <code>TSIG_ERR<\/code> \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n<pre><code>int traise(tint sig);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0441\u0438\u0433\u043d\u0430\u043b <code>sig<\/code>. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>0t<\/code> \u043f\u0440\u0438 \u0443\u0441\u043f\u0435\u0445\u0435.<\/p>\n<h4>B.10. \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u0430\u0442\u044b \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438: <\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;ttime.h&gt;<\/code> \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u0442\u043e\u0439 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c.<\/p>\n<p><strong>\u0422\u0438\u043f\u044b:<\/strong><\/p>\n<ul>\n<li>\n<p><code>ttime_t<\/code> \u2014 \u0446\u0435\u043b\u044b\u0439 \u0442\u0438\u043f (\u043e\u0431\u044b\u0447\u043d\u043e <code>tlong long<\/code>) \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<\/li>\n<li>\n<p><code>tclock_t<\/code> \u2014 \u0446\u0435\u043b\u044b\u0439 \u0442\u0438\u043f \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u0438:<\/strong><\/p>\n<pre><code>ttime_t ttime(ttime_t *t);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u0415\u0441\u043b\u0438 <code>t<\/code> \u043d\u0435 <code>0t<\/code>, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e.<\/p>\n<pre><code>tclock_t tclock(void);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u0437\u0430\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439.<\/p>\n<pre><code>tdouble tdifftime(ttime_t t1, ttime_t t0);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0430\u0437\u043d\u0438\u0446\u0443 <code>t1 - t0<\/code> \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445 \u043a\u0430\u043a <code>tdouble<\/code>.<\/p>\n<h4>B.11. \u0417\u0430\u0432\u0438\u0441\u044f\u0449\u0438\u0435 \u043e\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0435\u043b\u044b:  \u0438 <\/h4>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;tlimits.h&gt;<\/code> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043c\u0430\u043a\u0440\u043e\u0441\u044b \u0441 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u0446\u0435\u043b\u044b\u0445 \u0442\u0438\u043f\u043e\u0432:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041c\u0430\u043a\u0440\u043e\u0441<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TINT_MIN<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u20139\u202f841<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>tint<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TINT_MAX<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+9\u202f841<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>tint<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TLONG_MIN<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2013193\u202f710\u202f244<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>tlong<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TLONG_MAX<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+193\u202f710\u202f244<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>tlong<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TLLONG_MIN<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u20133\u202f812\u202f798\u202f742\u202f493<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>tlong long<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TLLONG_MAX<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+3\u202f812\u202f798\u202f742\u202f493<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>tlong long<\/code><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <code>&lt;tfloat.h&gt;<\/code> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043c\u0430\u043a\u0440\u043e\u0441\u044b \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041c\u0430\u043a\u0440\u043e\u0441<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TFLT_MANT_DIG<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0440\u0438\u0442\u043e\u0432 \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u044b <code>tfloat<\/code> (12)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TFLT_EPSILON<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0447\u0438\u0441\u043b\u043e, \u0442\u0430\u043a\u043e\u0435 \u0447\u0442\u043e <code>1.0 + epsilon != 1.0<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TFLT_MIN<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TFLT_MAX<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TDBL_MANT_DIG<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0440\u0438\u0442\u043e\u0432 \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u044b <code>tdouble<\/code> (28)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TDBL_EPSILON<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u044d\u043f\u0441\u0438\u043b\u043e\u043d \u0434\u043b\u044f <code>tdouble<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TDBL_MIN<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>TDBL_MAX<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>C. \u041f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439<\/h3>\n<p>\u041f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c C, \u044f\u0437\u044b\u043a T \u0432\u043d\u043e\u0441\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f:<\/p>\n<ol>\n<li>\n<p><strong>\u0422\u0440\u043e\u0438\u0447\u043d\u0430\u044f \u043e\u0441\u043d\u043e\u0432\u0430.<\/strong> \u0412\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f. \u0411\u0438\u0442\u044b \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u044b \u0442\u0440\u0438\u0442\u0430\u043c\u0438, \u0431\u0430\u0439\u0442\u044b \u2014 \u0442\u0440\u0430\u0439\u0442\u0430\u043c\u0438 (9 \u0442\u0440\u0438\u0442\u043e\u0432).<\/p>\n<\/li>\n<li>\n<p><strong>\u0422\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445.<\/strong> \u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u0442\u0438\u043f\u044b: <code>trit<\/code>, <code>tryte<\/code> (\u0441\u0438\u043d\u043e\u043d\u0438\u043c <code>tint<\/code>), <code>tlong<\/code> (18 \u0442\u0440\u0438\u0442\u043e\u0432), <code>tlong long<\/code> (27 \u0442\u0440\u0438\u0442\u043e\u0432), <code>tfloat<\/code> (18 \u0442\u0440\u0438\u0442\u043e\u0432), <code>tdouble<\/code> (36 \u0442\u0440\u0438\u0442\u043e\u0432), <code>tril<\/code> (\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0440\u0438\u0442). \u0422\u0438\u043f\u044b <code>short<\/code>, <code>char<\/code>, <code>int<\/code>, <code>long<\/code> \u0432 \u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0432\u0438\u0434\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0438\u043f <\/strong><code><strong>tril<\/strong><\/code><strong>.<\/strong> \u0422\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430: <code>true<\/code> (+1), <code>false<\/code> (\u20131), <code>maybe<\/code> (0). \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 <code>&amp;&amp;<\/code>, <code>||<\/code> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u043a\u0430\u043a min \u0438 max, \u043e\u0431\u0430 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u0434\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>\u0422\u0440\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440.<\/strong> <code>?? :? :!<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u0438\u0437 \u0442\u0440\u0451\u0445 \u0432\u0435\u0442\u0432\u0435\u0439.<\/p>\n<\/li>\n<li>\n<p><strong>\u0423\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <\/strong><code><strong>if<\/strong><\/code><strong>.<\/strong> \u041a \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u043c <code>if<\/code> \u0438 <code>else<\/code> \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0442\u0432\u044c <code>maybe<\/code>, \u0438\u0434\u0443\u0449\u0430\u044f \u0432 \u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u0415\u0441\u043b\u0438 <code>maybe<\/code> \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u043e\u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b.<\/strong> <code>&amp;<\/code>, <code>|<\/code>, <code>^<\/code> \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0430, \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0430 \u0438 \u0441\u0443\u043c\u043c\u044b \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e 3 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0434\u0432\u0438\u0433\u0438.<\/strong> <code>&lt;&lt;<\/code> \u0438 <code>&gt;&gt;<\/code> \u2014 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 3\u207f.<\/p>\n<\/li>\n<li>\n<p><strong>\u041b\u0438\u0442\u0435\u0440\u0430\u043b\u044b.<\/strong> \u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0435 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (<code>t<\/code>, <code>tl<\/code>, <code>tll<\/code>). \u0412\u0432\u0435\u0434\u0435\u043d\u044b \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0435 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c <code>0t<\/code> \u0438 27-\u0440\u0438\u0447\u043d\u044b\u0435 \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c <code>0y<\/code>. \u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u0438\u043c\u0435\u044e\u0442 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0438 \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0443\u0441\u0441\u043a\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430.<\/strong> \u0412\u0441\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0438\u043c\u0435\u044e\u0442 \u0440\u0443\u0441\u0441\u043a\u0438\u0435 \u0441\u0438\u043d\u043e\u043d\u0438\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>\u0435\u0441\u043b\u0438<\/code>, <code>\u0438\u043d\u0430\u0447\u0435<\/code>, <code>\u043c\u043e\u0436\u0435\u0442<\/code>, <code>\u0434\u043b\u044f<\/code>, <code>\u043f\u043e\u043a\u0430<\/code>, <code>\u0432\u043e\u0437\u0432\u0440\u0430\u0442<\/code>), \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u0431\u0435\u0437 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430.<\/strong> \u0410\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0434\u043b\u044f \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432: <code>&lt;tio.h&gt;<\/code>, <code>&lt;tstring.h&gt;<\/code>, <code>&lt;tmath.h&gt;<\/code>, <code>&lt;tstdlib.h&gt;<\/code> \u0438 \u0442.\u0434. \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u043c\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0447\u0438\u0441\u0435\u043b \u0438 \u0441\u0442\u0440\u043e\u043a.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440.<\/strong> \u0412 \u0446\u0435\u043b\u043e\u043c \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 C, \u043d\u043e <code>#if<\/code> \u0438 <code>#ifdef<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u0446\u0435\u043b\u044b\u043c\u0438; \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 <code>maybe<\/code> \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0430 \u0431\u0435\u0437 \u044f\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0431\u0435\u0437\u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0442\u0438\u043f\u043e\u0432.<\/strong> \u0422\u043e\u043b\u044c\u043a\u043e \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u043d\u0435\u0442 <code>unsigned<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438.<\/strong> \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0435\u0434\u0438\u043d\u0438\u0446\u0430 \u2014 \u0442\u0440\u0430\u0439\u0442 (9 \u0442\u0440\u0438\u0442\u043e\u0432). \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 \u0442\u0440\u0430\u0439\u0442\u0430\u0445. <code>sizeof<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u0432 \u0442\u0440\u0430\u0439\u0442\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f.<\/strong> \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0442\u0440\u0438\u0442\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f (\u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0430 \u0442\u0440\u0438\u0442\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0440\u0430\u0439\u0442\u0430).<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/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=\"https:\/\/habr.com\/ru\/articles\/1040370\/\">https:\/\/habr.com\/ru\/articles\/1040370\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435\u042f\u0437\u044b\u043a T \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u043a\u0430\u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a C \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u0432 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435. \u041f\u043e\u0434\u043e\u0431\u043d\u043e \u0442\u043e\u043c\u0443, \u043a\u0430\u043a C \u0441\u0442\u0430\u043b \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c \u0434\u043b\u044f \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d, T \u043f\u0440\u0438\u0437\u0432\u0430\u043d \u0437\u0430\u043d\u044f\u0442\u044c \u0442\u0443 \u0436\u0435 \u043d\u0438\u0448\u0443 \u0432 \u043c\u0438\u0440\u0435 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432. \u041c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0437\u043c\u0430 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u0431\u0438\u0442\u044b \u0442\u0440\u0438\u0442\u0430\u043c\u0438, \u0431\u0430\u0439\u0442\u044b \u0442\u0440\u0430\u0439\u0442\u0430\u043c\u0438, \u0430 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u2014 \u0438\u0445 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u044b\u043c\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0430\u043c\u0438.\u041a\u043d\u0438\u0433\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u00ab\u042f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f C\u00bb, \u0447\u0442\u043e\u0431\u044b \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c, \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 \u0441 C, \u043c\u043e\u0433 \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0441\u0432\u043e\u0438\u0442\u044c T, \u0430 \u043d\u043e\u0432\u0438\u0447\u043e\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435 \u043a \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u0438\u0437\u0434\u0430\u043d\u0438\u044e\u042f\u0437\u044b\u043a T \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0438\u0437 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0441 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u043e\u0439 \u00ab\u0421\u0435\u0442\u0443\u043d\u044c\u00bb \u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043c\u043d\u043e\u0433\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438. \u041c\u044b \u0441\u0442\u0440\u0435\u043c\u0438\u043b\u0438\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0442\u0440\u0438\u0442\u0430\u043c\u0438 \u0442\u0430\u043a \u0436\u0435 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043a\u0430\u043a C \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0431\u0438\u0442\u0430\u043c\u0438. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u2014 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430, \u0442\u0440\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b \u2014 \u0434\u0430\u044e\u0442 \u043d\u043e\u0432\u044b\u0435 \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0443\u0440\u043e\u0439.\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435T \u2014 \u044d\u0442\u043e \u044f\u0437\u044b\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0435\u0434\u0438\u043d\u0438\u0446\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0440\u0438\u0442 (\u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u044f\u0434), \u0430 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c \u2014 \u0442\u0440\u0430\u0439\u0442 (9 \u0442\u0440\u0438\u0442\u043e\u0432). \u0412\u0441\u0435 \u0446\u0435\u043b\u044b\u0435 \u0442\u0438\u043f\u044b \u043a\u0440\u0430\u0442\u043d\u044b \u0442\u0440\u0430\u0439\u0442\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 (-, 0, +). \u041b\u043e\u0433\u0438\u043a\u0430 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u0430\u044f, \u0441 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438 \u00ab\u0438\u0441\u0442\u0438\u043d\u0430\u00bb, \u00ab\u043b\u043e\u0436\u044c\u00bb \u0438 \u00ab\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c\u00bb. \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d \u0443 C \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438.\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 T \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439, \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0432 \u0444\u0430\u0439\u043b\u044b. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u043e\u0432, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 C.1. \u041e\u0431\u0437\u043e\u0440 \u044f\u0437\u044b\u043a\u0430\u041d\u0430\u0447\u043d\u0451\u043c \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u044f\u0437\u044b\u043a\u0430 T \u0441 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043e\u0431\u0437\u043e\u0440\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439. \u042d\u0442\u0430 \u0433\u043b\u0430\u0432\u0430 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442 \u0432\u0430\u0441 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u044f\u0437\u044b\u043a\u0430: \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438, \u0442\u0438\u043f\u0430\u043c\u0438, \u0446\u0438\u043a\u043b\u0430\u043c\u0438, \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u0438 \u0432\u0432\u043e\u0434\u043e\u043c-\u0432\u044b\u0432\u043e\u0434\u043e\u043c. \u041a \u043a\u043e\u043d\u0446\u0443 \u0433\u043b\u0430\u0432\u044b \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e, \u043d\u043e \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 T.1.1. \u041d\u0430\u0447\u043d\u0451\u043c, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u2014 \u0442\u0440\u043e\u0438\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435:#include &lt;tio.h&gt;tint main() {    print(&#171;\u041f\u0440\u0438\u0432\u0435\u0442, \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u043c\u0438\u0440!\\n&#187;);    return 0t;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u043f\u0435\u0447\u0430\u0442\u044c(&#171;\u041f\u0440\u0438\u0432\u0435\u0442, \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u043c\u0438\u0440!\\n&#187;);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}\u0424\u0443\u043d\u043a\u0446\u0438\u044f main (\u0433\u043b\u0430\u0432\u043d\u0430\u044f) \u2014 \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430. print (\u043f\u0435\u0447\u0430\u0442\u044c) \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u0443, \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d\u043d\u0443\u044e \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0442\u0440\u0430\u0439\u0442\u043e\u043c 0t. \u0422\u0438\u043f tint (\u0442\u0446\u0435\u043b) \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0446\u0435\u043b\u043e\u0435 (\u0442\u0440\u0430\u0439\u0442). \u041b\u0438\u0442\u0435\u0440\u0430\u043b 0t \u2014 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043d\u043e\u043b\u044c \u0441 \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u043e\u043c t, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0438\u043c \u0442\u0438\u043f tint. return (\u0432\u043e\u0437\u0432\u0440\u0430\u0442) \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.1.2. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0412 \u044f\u0437\u044b\u043a\u0435 T \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u0440\u044f\u0434 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0442\u0438\u043f\u043e\u0432: tint (\u0442\u0446\u0435\u043b), tryte (\u0442\u0440\u0430\u0439\u0442, \u0441\u0438\u043d\u043e\u043d\u0438\u043c tint), tlong (\u0442\u0434\u043b\u0438\u043d), tfloat (\u0442\u0432\u0435\u0449), tdouble (\u0442\u0434\u0432\u043e\u0439\u043d). \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0432 C, \u043d\u043e \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432.#include &lt;tio.h&gt;tint main() {    tryte a = 0t+-0_0+0;   \/\/ \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b    tryte b = 50t;         \/\/ \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b    tryte sum = a + b;    printtryte(sum);       \/\/ \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435    return 0t;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 a = 0t+-0_0+0;   \/\/ \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b    \u0442\u0440\u0430\u0439\u0442 b = 50t;         \/\/ \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b    \u0442\u0440\u0430\u0439\u0442 sum = a + b;    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0440\u0430\u0439\u0442(sum);      \/\/ \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}\u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f: +, -, , \/, %. \u0414\u0435\u043b\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0441 \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435\u043c \u043a \u2013\u221e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, -5t \/ 3t \u0434\u0430\u0451\u0442 -2t, \u0442\u0430\u043a \u043a\u0430\u043a -5t = (-2t)3t + 1t.1.3. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f for\u0426\u0438\u043a\u043b for (\u0434\u043b\u044f) \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0432 C, \u043d\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u044b\u043c. \u0422\u0435\u043b\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f, \u043f\u043e\u043a\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0440\u0430\u0432\u043d\u043e true (\u0438\u0441\u0442\u0438\u043d\u0430). \u0415\u0441\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 maybe (\u043c\u043e\u0436\u0435\u0442) \u2014 \u0446\u0438\u043a\u043b \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f.#include &lt;tio.h&gt;tint main() {    for (tryte i = 0t; i &lt; 10t; i = i + 1t)        printbal(i);    return 0t;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0434\u043b\u044f (\u0442\u0440\u0430\u0439\u0442 i = 0t; i &lt; 10t; i = i + 1t)        \u043f\u0435\u0447\u0430\u0442\u044c\u0431\u0430\u043b(i);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}\u042d\u0442\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u0441\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b \u043e\u0442 0 \u0434\u043e 9: 0, +, +-, ++, +&#8212;, +-0, +-+, ++-, ++0, +++.1.4. \u0418\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b\u0418\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438. \u041f\u0435\u0440\u0432\u044b\u0439 \u2014 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 #define (#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c):#define MAX 100t\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:#\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c MAX 100t\u0412\u0442\u043e\u0440\u043e\u0439 \u2014 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f:const tryte MAX = 100t;\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:\u043a\u043e\u043d\u0441\u0442 \u0442\u0440\u0430\u0439\u0442 MAX = 100t;\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0438\u0441\u0442\u0438\u043d\u043d\u043e\u0441\u0442\u0438: true (\u0438\u0441\u0442\u0438\u043d\u0430), false (\u043b\u043e\u0436\u044c), maybe (\u043c\u043e\u0436\u0435\u0442). \u041e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u0442\u0438\u043f tril (\u0442\u0440\u0438\u043b) \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u0442\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435.1.5. \u0412\u0432\u043e\u0434-\u0432\u044b\u0432\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432\u0421\u0438\u043c\u0432\u043e\u043b \u0432 \u044f\u0437\u044b\u043a\u0435 T \u2014 \u044d\u0442\u043e tryte (\u0442\u0440\u0430\u0439\u0442), \u0445\u0440\u0430\u043d\u044f\u0449\u0438\u0439 \u043a\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430. \u0412\u0432\u043e\u0434-\u0432\u044b\u0432\u043e\u0434 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 &lt;tio.h&gt;: getchar() (\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0438\u043c\u0432) \u0447\u0438\u0442\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b, putchar(c) (\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c\u0441\u0438\u043c\u0432) \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442. \u041a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0442\u0440\u0430\u0439\u0442\u043e\u043c 0t.1.5.1. \u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430\u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430-\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0447\u0438\u0442\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430 \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u0445 \u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434:#include &lt;tio.h&gt;tint main() {    tryte c;    while ((c = getchar()) != 0t)   \/\/ 0t \u2014 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430        putchar(c);    return 0t;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 c;    \u043f\u043e\u043a\u0430 ((c = \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0438\u043c\u0432()) != 0t)   \/\/ 0t \u2014 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430        \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c\u0441\u0438\u043c\u0432(c);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}1.5.2. \u041f\u043e\u0434\u0441\u0447\u0451\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435:#include &lt;tio.h&gt;tint main() {    tlong count = 0tl;    while (getchar() != 0t)        count = count + 1tl;    printtlong(count);    return 0t;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0434\u043b\u0438\u043d count = 0tl;    \u043f\u043e\u043a\u0430 (\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0438\u043c\u0432() != 0t)        count = count + 1tl;    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0434\u043b\u0438\u043d(count);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u0443\u0444\u0444\u0438\u043a\u0441 tl \u2014 \u043e\u043d \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0442\u0438\u043f tlong (\u0442\u0434\u043b\u0438\u043d, 18 \u0442\u0440\u0438\u0442\u043e\u0432). \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f count \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f tlong, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0447\u0435\u043c \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 tint.1.5.3. \u041f\u043e\u0434\u0441\u0447\u0451\u0442 \u0441\u0442\u0440\u043e\u043a\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0432\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435. \u0421\u0438\u043c\u0432\u043e\u043b \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u043c\u0435\u0435\u0442 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0440\u0430\u0432\u0435\u043d 10 (\u043a\u0430\u043a \u0438 \u0432 ASCII).#include &lt;tio.h&gt;tint main() {    tryte c;    tlong lines = 0tl;    while ((c = getchar()) != 0t) {        if (c == 10t)      \/\/ 10t \u2014 \u043a\u043e\u0434 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438            lines = lines + 1tl;    }    printtlong(lines);    return 0t;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 c;    \u0442\u0434\u043b\u0438\u043d lines = 0tl;    \u043f\u043e\u043a\u0430 ((c = \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0438\u043c\u0432()) != 0t) {        \u0435\u0441\u043b\u0438 (c == 10t)      \/\/ 10t \u2014 \u043a\u043e\u0434 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438            lines = lines + 1tl;    }    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0434\u043b\u0438\u043d(lines);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}1.5.4. \u041f\u043e\u0434\u0441\u0447\u0451\u0442 \u0441\u043b\u043e\u0432\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043b\u043e\u0432, \u043f\u043e\u043d\u0438\u043c\u0430\u044f \u0441\u043b\u043e\u0432\u043e \u043a\u0430\u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0435\u043f\u0440\u043e\u0431\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u043b\u0430\u0433 inword, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 true (\u0438\u0441\u0442\u0438\u043d\u0430), \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u043c\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043b\u043e\u0432\u0430.#include &lt;tio.h&gt;tint main() {    tryte c;    tlong words = 0tl;    tril inword = false;    while ((c = getchar()) != 0t) {        if (c == 10t || c == 32t || c == 9t) {  \/\/ \\n, \u043f\u0440\u043e\u0431\u0435\u043b, \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u044f            inword = false;        } else if (!inword) {            inword = true;            words = words + 1tl;        }    }    printtlong(words);    return 0t;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 c;    \u0442\u0434\u043b\u0438\u043d words = 0tl;    \u0442\u0440\u0438\u043b inword = \u043b\u043e\u0436\u044c;    \u043f\u043e\u043a\u0430 ((c = \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u0438\u043c\u0432()) != 0t) {        \u0435\u0441\u043b\u0438 (c == 10t || c == 32t || c == 9t) {  \/\/ \\n, \u043f\u0440\u043e\u0431\u0435\u043b, \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u044f            inword = \u043b\u043e\u0436\u044c;        } \u0438\u043d\u0430\u0447\u0435 \u0435\u0441\u043b\u0438 (!inword) {            inword = \u0438\u0441\u0442\u0438\u043d\u0430;            words = words + 1tl;        }    }    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0434\u043b\u0438\u043d(words);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}1.6. \u041c\u0430\u0441\u0441\u0438\u0432\u044b\u041c\u0430\u0441\u0441\u0438\u0432\u044b \u0432 T \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0432 C: \u0442\u0438\u043f \u0438\u043c\u044f[\u0440\u0430\u0437\u043c\u0435\u0440]. \u0418\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043d\u0443\u043b\u044f.#include &lt;tio.h&gt;tint main() {    tryte digits[10];    for (tryte i = 0t; i &lt; 10t; i = i + 1t)        digits[i] = i;    return 0t;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 digits[10];    \u0434\u043b\u044f (\u0442\u0440\u0430\u0439\u0442 i = 0t; i &lt; 10t; i = i + 1t)        digits[i] = i;    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u044b\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c. \u0418\u043c\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u043c \u043d\u0430 \u0435\u0433\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 \u0433\u043b\u0430\u0432\u0435 5).1.7. \u0424\u0443\u043d\u043a\u0446\u0438\u0438\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 T \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0432 C. \u0422\u0438\u043f \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c: tint (\u0442\u0446\u0435\u043b), tril (\u0442\u0440\u0438\u043b), tfloat (\u0442\u0432\u0435\u0449), void (\u043f\u0443\u0441\u0442\u043e) \u0438 \u0442.\u0434. \u0415\u0441\u043b\u0438 \u0442\u0438\u043f \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f tint.tryte add(tryte x, tryte y) {    return x + y;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:\u0442\u0440\u0430\u0439\u0442 \u0441\u043b\u043e\u0436\u0438\u0442\u044c(\u0442\u0440\u0430\u0439\u0442 x, \u0442\u0440\u0430\u0439\u0442 y) {    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 x + y;}\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0430 \u0434\u043e \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f (\u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f):tryte add(tryte x, tryte y);   \/\/ \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043ftint main() {    tryte s = add(3t, 4t);    return 0t;}tryte add(tryte x, tryte y) {    return x + y;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:\u0442\u0440\u0430\u0439\u0442 \u0441\u043b\u043e\u0436\u0438\u0442\u044c(\u0442\u0440\u0430\u0439\u0442 x, \u0442\u0440\u0430\u0439\u0442 y);   \/\/ \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 s = \u0441\u043b\u043e\u0436\u0438\u0442\u044c(3t, 4t);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}\u0442\u0440\u0430\u0439\u0442 \u0441\u043b\u043e\u0436\u0438\u0442\u044c(\u0442\u0440\u0430\u0439\u0442 x, \u0442\u0440\u0430\u0439\u0442 y) {    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 x + y;}1.8. \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b. \u0412\u044b\u0437\u043e\u0432 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e\u0412\u0441\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432 T \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e: \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043a\u043e\u043f\u0438\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b. \u0427\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (\u0441\u043c. \u0433\u043b\u0430\u0432\u0443 5).void increment(tryte *p) {    *p = *p + 1t;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:\u043f\u0443\u0441\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c(\u0442\u0440\u0430\u0439\u0442 *p) {    *p = *p + 1t;}1.9. \u0421\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b\u0421\u0442\u0440\u043e\u043a\u0438 \u0432 T \u2014 \u044d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u044b tryte (\u0442\u0440\u0430\u0439\u0442), \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0442\u0440\u0430\u0439\u0442\u043e\u043c 0t. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 &lt;tstring.h&gt;.#include &lt;tstring.h&gt;#include &lt;tio.h&gt;tint main() {    tryte str[] = &#171;\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, T!&#187;;    tlong len = tstrlen(str);    printtlong(len);    return 0t;}\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tstring.h&gt;#\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c &lt;tio.h&gt;\u0442\u0446\u0435\u043b \u0433\u043b\u0430\u0432\u043d\u0430\u044f() {    \u0442\u0440\u0430\u0439\u0442 str[] = &#171;\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, T!&#187;;    \u0442\u0434\u043b\u0438\u043d len = \u0442\u0434\u043b\u0438\u043d\u0430\u0441\u0442\u0440(str);    \u043f\u0435\u0447\u0430\u0442\u044c\u0442\u0434\u043b\u0438\u043d(len);    \u0432\u043e\u0437\u0432\u0440\u0430\u0442 0t;}1.10. \u0412\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u0432\u0438\u0434\u0438\u043c\u044b \u0432\u043e \u0432\u0441\u0451\u043c \u0444\u0430\u0439\u043b\u0435 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0447\u043a\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f. \u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e extern (\u0432\u043d\u0435\u0448) \u0434\u0430\u0451\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0444\u0430\u0439\u043b\u0435.\/\/ file1.ttint global_counter = 0t;\/\/ file2.textern tint global_counter;\u0421 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:\/\/ file1.t\u0442\u0446\u0435\u043b global_counter = 0t;\/\/ file2.t\u0432\u043d\u0435\u0448 \u0442\u0446\u0435\u043b global_counter;\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 (\u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c static \/ \u0441\u0442\u0430\u0442\u0438\u0447) \u0432\u0438\u0434\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0432&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-481317","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/481317","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=481317"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/481317\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=481317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=481317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=481317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}