{"id":109,"date":"2017-02-11T16:16:00","date_gmt":"2017-02-11T08:16:00","guid":{"rendered":"https:\/\/cn1.club\/?p=109"},"modified":"2025-03-13T20:13:37","modified_gmt":"2025-03-13T12:13:37","slug":"day2-%e7%ac%94%e8%ae%b0-%e7%ae%97%e6%95%b0%e8%bf%90%e7%ae%97%e7%ac%a6-%e5%92%8c-%e7%9a%84%e7%bb%83%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/cn1.club\/?p=109","title":{"rendered":"Day2 \u7b14\u8bb0 \u7b97\u6570\u8fd0\u7b97\u7b26 ++ \u548c - - \u7684\u7ec3\u4e60"},"content":{"rendered":"\n<p>class Test1_Operator {<br>public static void main(String[] args) {<br>\/\/\u7b2c\u4e00\u9898-\u8bf7\u5206\u522b\u8ba1\u7b97\u51faa,b,c\u7684\u503c?<br>\/*<br>int a = 10;<br>int b = 10;<br>int c = 10;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >    a = b++;            \/\/a = 10  b = 11\n    c = --a;            \/\/c = 9   a = 9\n    b = ++a;            \/\/b = 10  a = 10\n    a = c--;            \/\/c = 8   a = 9\n\n    System.out.println(&quot;a = &quot; + a + &quot;,b = &quot; + b + &quot;,c = &quot; + c);         \/\/ a =9 ,b = 10 ,c = 8\n\n    *\/\n    \/\/\u7b2c\u4e8c\u9898-\u8bf7\u5206\u522b\u8ba1\u7b97\u51fax,y\u7684\u503c?\n\n    \/\/int x = 4;\n    \/\/      y4x5, x6y10,x=6 y= 4 + 6 + 6 * 10    \n    \/\/int y = (x++)+(++x)+(x*10);\n\n\n    \/\/System.out.println(&quot;x =&quot; +  x + &quot; y = &quot; + y );                        \/\/x = 6     y = 70\n\n\n    \/\/\u7b2c\u4e09\u9898-\u9762\u8bd5\u9898\n\n    \/\/byte b = 10;\n    \/\/b++;          \/\/b= (byte)(b + 1)\n    \/\/b = b + 1;\n    \/\/\u95ee\u54ea\u53e5\u4f1a\u62a5\u9519,\u4e3a\u4ec0\u4e48\n    \/\/\u7b2c\u4e09\u884c\u4f1a\u62a5\u9519,\u5728byte\u7c7b\u578b\u4e0eint\u7c7b\u578b\u6df7\u5408\u8fd0\u7b97\u65f6\u4f1a\u63d0\u5347\u4e3aint\u7c7b\u578b,\u4e24\u4e2aint\u7c7b\u578b\u76f8\u52a0\u7ed3\u679c\u8fd8\u662fint\u7c7b\u578b,\u8d4b\u503c\u7ed9byte\u4f1a\u635f\u5931\u7cbe\u5ea6.\n}<\/code><\/pre>\n\n\n\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>class Test1_Operator {public static void main(String[]  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":196,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"class_list":["post-109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-xuexi"],"_links":{"self":[{"href":"https:\/\/cn1.club\/index.php?rest_route=\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn1.club\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn1.club\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn1.club\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn1.club\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=109"}],"version-history":[{"count":0,"href":"https:\/\/cn1.club\/index.php?rest_route=\/wp\/v2\/posts\/109\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cn1.club\/index.php?rest_route=\/wp\/v2\/media\/196"}],"wp:attachment":[{"href":"https:\/\/cn1.club\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn1.club\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn1.club\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}