{"id":56,"date":"2004-12-16T12:37:56","date_gmt":"2004-12-16T09:37:56","guid":{"rendered":"\/?p=56"},"modified":"2006-01-20T01:51:37","modified_gmt":"2006-01-19T22:51:37","slug":"java-2","status":"publish","type":"post","link":"https:\/\/blog.marudina.net\/?p=56","title":{"rendered":"??????????? ?? Java"},"content":{"rendered":"<p>??????? ? C++ ?? ?????????? &#8220;????????? ????????????! ???? ?????? ? ? ?????? ?? ???????????!&#8221;, ??? ????? ??????, ? ????? ????????????? ? ?????? ?????????. ???????????? ?? ?????????? ??????? ?? C++ ?????? ??????? ?? ???????????? ? ????? ????? ????, ?????? ???????? ? ??????? ????? ?????? ?? ?????????. ????? ??? ????? ?? ???? debug ? release ???????? ?? ??????? ??, ???? ?????, ?? ?????? ???? ?? ???????? ??????, ?? ??????? ?? <strong>#define<\/strong>, <strong>#undef<\/strong>, <strong>#ifdef<\/strong>, <strong>#ifndef<\/strong>, <strong>#else<\/strong> ? <strong>#endif<\/strong>.<\/p>\n<p>? ?????? Java-?? ???? ???????????, ???? ???? ????? ?????????? ?? ????? ?????? ?? ??????? ???? ????? <a href=\"http:\/\/www.gnu.org\/software\/flex\/\">flex<\/a> ?????? (?, ????????? ? ???? .cpp ???? ?? ?? ?? ?????????? ?? STL ????????????, ?????? ?? ????? ?? ??????? ????? <a href=\"http:\/\/www.gnu.org\/software\/flex\/\">flex<\/a> ?? ???????? ???????? .cpp ???? ?????? ??????? ??????? ?????), ????? ?? ??????? ????? ?? ?? ??????????????? ?????????. ????? ?? ???? .java ????, ?????? ?? ?? ???????????, ? ???? ????? ????????? ????? ? ??????????? ??????, ????? ?????? ?? ?? ?????????? ? ?????? ? ?????????? ?? ???????????? ???????. ???????, ?? ??? ??????????? ????? <a href=\"http:\/\/www.gnu.org\/software\/flex\/\">flex<\/a>-?, ???? ?? ???? ??????????? ?? ????????? ??????????. <\/p>\n<p><strong>???????? ????:<\/strong><br \/>\n<code>\/\/#define DEBUG__<br \/>\npublic class preproc {<br \/>\n  public static void main(String[] args) {<br \/>\n\/\/#ifdef DEBUG__<br \/>\n        System.out.println(\"Debug mode ON\");<br \/>\n\/\/#else<br \/>\n        System.out.println(\"Debug mode OFF\");<br \/>\n\/\/#endif<br \/>\n    }<br \/>\n}<\/code><\/p>\n<p><strong>???????? ?????:<\/strong><br \/>\n<code>\/\/#define DEBUG__<br \/>\npublic class preproc {<br \/>\n    public static void main(String[] args) {<br \/>\n\/\/#ifdef DEBUG__<br \/>\n        System.out.println(\"Debug mode ON\");<br \/>\n\/\/#else<br \/>\n\/\/       System.out.println(\"Debug mode OFF\");<br \/>\n\/\/#endif<br \/>\n    }<br \/>\n}<\/code><\/p>\n<p>? ??? ?????????? ????????? ?? ?????? ?????????? ? ?????????? ?????? ? ?????? ?? ? ?????????? ????????????? ????? ? ????????? ??????????, ?? ???????? ? ??? ??????, ????? ?? ???? ???????????? ?? ????? ????? ????. ????? ???? ?? ????????? ??? ????? ?????? ? ??????? ??????????, ????? ?? ????? ? ???????, ????? ?? ?? ??????? ?? ???????? ?????????? ?? ?????? ???????. ??? ???????? ?? ???? ?????????? ?? ?????????? ???? ???? ??????, ??????????? ???? ?? ????? ?????????, ? ??? ????? (????????? ?? #define ????????) ????? ?? ????? ? ??????????.<\/p>\n<p>??????????, ??? ? ?????? ????????. ???-????? ?? ??????? ???? (?????, ?? ?? ?????? ?? ????? ? ???? ?? ?????????) : <a href=\"http:\/\/www.vortoj.com\/sjpp\/readme.html\">Simple Java PreProcessor<\/a>. ??? ?????????? ? ?? ??????????? ??? ????? ?? ?????????? ?? Java ???????.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>??????? ? C++ ?? ?????????? &#8220;????????? ????????????! ???? ?????? ? ? ?????? ?? ???????????!&#8221;, ??? ????? ??????, ? ????? ????????????? ? ?????? ?????????. ???????????? ?? ?????????? ??????? ?? C++ ?????? ??????? ?? ???????????? ? ????? ????? ????, ?????? ???????? ? ??????? ????? ?????? ?? ?????????. ????? ??? ????? ?? ???? debug ? release ???????? ?? [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.marudina.net\/index.php?rest_route=\/wp\/v2\/posts\/56"}],"collection":[{"href":"https:\/\/blog.marudina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.marudina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.marudina.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.marudina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56"}],"version-history":[{"count":0,"href":"https:\/\/blog.marudina.net\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.marudina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.marudina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.marudina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}