{"id":9090,"date":"2010-06-26T04:42:00","date_gmt":"2010-06-26T04:42:00","guid":{"rendered":"http:\/\/melotopia.net\/b\/?p=9090"},"modified":"2010-06-26T04:42:00","modified_gmt":"2010-06-26T04:42:00","slug":"c%ec%9d%98-%ec%9d%80","status":"publish","type":"post","link":"http:\/\/melotopia.net\/b\/?p=9090","title":{"rendered":"C++\uc758 ++\uc740?"},"content":{"rendered":"<div class=\"desc\">\n        C\uc5b8\uc5b4\uc640 C++\uc5b8\uc5b4\uc5d0\uc11c\ub294 \uc5f0\uc0b0\uc790\uac00 \ub9ce\uc774 \uc788\ub2e4. \uc138\uacc4\uc5d0\uc11c \uac00\uc7a5 \uc720\uba85\ud55c \uc5f0\uc0b0\uc790\uc778 ++\uc744 \uc608\ub85c \ub4e4\uc5b4\ubcf4\uc790.<br \/>\n        <sup class=\"footnote\"><br \/>\n<a href=\"#footnote_1918_1\" id=\"footnote_link_1918_1\" onmouseout=\"tistoryFootnote.hide(1918,1)\" onmouseover=\"tistoryFootnote.show(this,1918,1)\" style=\"color:#f9650d;font-family:Verdana,Sans-serif\"><br \/>\n<span style=\"display:none\"><br \/>\n           [\uac01\uc8fc:<br \/>\n          <\/span><br \/>\n          1<br \/>\n          <span style=\"display:none\"><br \/>\n           ]<br \/>\n          <\/span><br \/>\n<\/a><br \/>\n<\/sup><\/p>\n<blockquote><p>\n         int n=0;\n        <\/p><\/blockquote>\n<p>\n        \uc704\uc640 \uac19\uc774 \uc120\uc5b8\ub418\uc5b4 \uc788\ub2e4\uace0 \ud558\uc790. \uadf8\ub7fc<br \/>\n        <\/p>\n<blockquote><p>\n         n++;\n        <\/p><\/blockquote>\n<p>\n        \uc774\ub807\uac8c \ud558\uba74 n=n+1; \uc774 \uc2e4\ud589\ub41c\ub2e4.<br \/>\n        <\/p>\n<blockquote><p>\n         ++n;\n        <\/p><\/blockquote>\n<p>\n        \uc774\ub807\uac8c \ud574\ub3c4 n=n+1; \uc774 \uc2e4\ud589\ub41c\ub2e4.<\/p>\n<p>        \ubb54 \ucc28\uc774\ub0d0&#8230;\ub77c\uace0 \ubb3b\ub294\ub2e4\uba74, \uc544\uc8fc \uc791\uc740 \ucc28\uc774\uac00 \uc788\ub2e4. \uc6b0\uc120, \ucd5c\uc885\uc801\uc73c\ub85c n=n+1;\uc774 \uc2e4\ud589\ub41c\ub2e4\ub294 \uc810\uc5d0\ub294 \ubcc0\ud654\uac00 \uc5c6\ub2e4. \ud558\uc9c0\ub9cc \ub2e4\uc74c\uacfc \uac19\uc774 \uc368\uba39\uc744 \uc218 \uc788\ub2e4.<\/p>\n<blockquote><p>\n         int m;\n        <\/p><\/blockquote>\n<p>\n        \uc77c\ub2e8 \uc774\ub807\uac8c \ud558\ub098 \uc120\uc5b8\ud558\uace0\ub098\uc11c<br \/>\n        <\/p>\n<blockquote><p>\n         m=n++;\n        <\/p><\/blockquote>\n<p>\n        \uc704\uc640 \uac19\uc774 \uc368\uba39\uc73c\uba74, \uadf8 \ubb38\uc7a5\uc740 \ub2e4\uc74c\uacfc \uac19\uc774 \uc791\ub3d9\ud55c\ub2e4.<br \/>\n        <\/p>\n<blockquote><p>\n         m=n;<br \/>\n         <br \/>\n         n=n+1;\n        <\/p><\/blockquote>\n<p>\n        \ud558\uc9c0\ub9cc \ub2e4\uc74c\uacfc \uac19\uc774 \uc4f8 \uc218\ub3c4 \uc788\ub2e4.<br \/>\n        <\/p>\n<blockquote><p>\n         m=++n;\n        <\/p><\/blockquote>\n<p>\n        \uc774 \ubb38\uc7a5\uc740 \ub2e4\uc74c\uacfc \uac19\uc774 \uc791\ub3d9\ud55c\ub2e4.<br \/>\n        <\/p>\n<blockquote><p>\n         n=n+1;<br \/>\n         <br \/>\n         m=n;\n        <\/p><\/blockquote>\n<p>\n        \ubcc4 \ucc28\uc774 \uc5c6\uc5b4 \ubcf4\uc774\uc9c0\ub9cc, \uacb0\uacfc\uc801\uc73c\ub85c m\uc5d0 \ub300\uc785\ub418\ub294 \uac12\uc774 \ub2ec\ub77c\uc9c4\ub2e4. ++\uc774 n\uc758 \ub4a4\uc5d0 \ubd99\uc5b4\uc788\uc744 \ub54c\ub294, \uc77c\ub2e8 \ub300\uc785\ud558\uace0\ub098\uc11c n\uc5d0 1\uc744 \ub354\ud55c\ub2e4. \ub530\ub77c\uc11c m\uc5d0\ub294 n\ubcf4\ub2e4 1\uc774 \uc791\uc740 \uac12\uc774 \ub4e4\uc5b4\uac00 \uc788\uac8c \ub41c\ub2e4. \ud558\uc9c0\ub9cc ++\uc774 \uc55e\uc5d0 \ubd99\uc5b4\uc788\uc744 \ub54c\ub294 \uc77c\ub2e8 \ub354\ud558\uace0 \ub098\uc11c \ub300\uc785\ud55c\ub2e4. \ub530\ub77c\uc11c m\uacfc n\uc740 \uac19\uc740 \uac12\uc744 \uac16\uac8c \ub41c\ub2e4.<\/p>\n<p>        \uc774 \uc0ac\uc18c\ud55c \ucc28\uc774\ub294, \ub9e4\uc6b0 \uc0ac\uc18c\ud55c \ucc28\uc774\uc9c0\ub9cc \ud504\ub85c\uadf8\ub7a8\uc744 \ub9cc\ub4e4 \ub54c \uadf8 \uacb0\uacfc\uc5d0 \ud070 \ucc28\uc774\ub97c \uac16\uace0 \uc624\uac8c \ub41c\ub2e4. \uc2e4\uc81c\ub85c \ud504\ub85c\uadf8\ub7a8\uc744 \ub9cc\ub4e4 \ub54c \uc5b4\ub5a4 \ubcc0\uc218\uc5d0 +1\uc744 \ud560 \uc77c\uc774 \uad49\uc7a5\ud788 \ub9ce\uc740\ub370, \uc4f8 \ub54c\ub9c8\ub2e4 \ud55c\ubc88\uc529 \uace0\ubbfc\ud558\uba74\uc11c \uc368 \ubcf4\uc790. \uc544\ubb34 \uc0dd\uac01 \uc5c6\uc774 \uc4f0\uba74 \ud2c0\ub9b0\ub2e4.<\/p>\n<p>        \ucc38\uace0\ub85c, -1\uc744 \ud574\uc8fc\ub294 \uc5f0\uc0b0\uc790\ub3c4 \uc788\ub2e4. \uc608\uc0c1\ud588\ub2e4\uc2dc\ud53c &#8211;\uc774\ub2e4. \uc791\ub3d9\ubc29\ubc95\uacfc \uc0ac\uc6a9\ubc29\ubc95\uc740 ++\uacfc \ub3d9\uc77c\ud558\ub2e4.<\/p>\n<p>        \uadf8\ub7fc **\uc740 \ubb50\ub0d0\uace0? \uc74c&#8230;x1\uc744 \ud574\uc8fc\ub294 \uc5f0\uc0b0\uc790\ub77c\uace0 \uc0dd\uac01\ud560 \uc218\ub3c4 \uc788\uaca0\uc9c0\ub9cc \uc544\uc27d\uac8c\ub3c4 \uc774\uc911\ud3ec\uc778\ud130 \uc5f0\uc0b0\uc790\uc774\ub2e4. C++\uc744 \ub9cc\ub4e0 \uc0ac\ub78c\ub4e4\ub3c4 **\uc758 \uc6a9\ub3c4\uc5d0 \ub300\ud574\uc11c \uace0\ubbfc\ud558\ub2e4\uac00 1\uc744 \uacf1\ud558\ub294\uac74 \uc218\ud559\uc801\uc73c\ub85c \uc544\ubb34 \uc77c\ub3c4 \ud558\uc9c0 \uc54a\ub294\ub2e4\ub294 \uac83\uc744 \uae68\ub2eb\uace0 \ub2e4\ub978\ub370\uc5d0 \uc368\uba39\uc5c8\uc744 \uac83\uc774\ub2e4. \uadf8\ub9ac\uace0 \/\/\ub3c4 \uc788\ub2e4. \uc774\uac83 \uc5ed\uc2dc 1\ub85c \ub098\ub204\ub294 \uc5f0\uc0b0\uc790\uc600\uc73c\uba74 \uc88b\uaca0\uc9c0\ub9cc **\uacfc \ub9c8\ucc2c\uac00\uc9c0 \uc774\uc720\ub85c \ub2e4\ub978 \uc6a9\ub3c4\ub85c \uc4f0\uc778\ub2e4. \/\/\ub4a4\uc5d0 \uc4f4 \ubb38\uc7a5\uc740 \uadf8 \uc904\uc774 \ub05d\ub098\ub294 \ubd80\ubd84\uae4c\uc9c0 \uc804\ubd80 \uc544\ubb34\uac83\ub3c4 \uc2e4\ud589\ub418\uc9c0 \uc54a\ub294\ub2e4. \uc989, \ud504\ub85c\uadf8\ub7a8\uc5d0 \uc124\uba85\uc744 \ub2ec\uace0 \uc2f6\uc744 \ub54c \uc4f0\uba74 \ub41c\ub2e4. \uc544\ub2c8\uba74 \uadf8 \uc904\uc744 \uc2e4\ud589\uc2dc\ud0a4\uae30 \uc2eb\uc5b4\uc84c\ub2e4\uba74 \uc81c\uc77c \uc55e\uc5d0 \/\/\uc744 \ubd99\uc774\uba74 \ub41c\ub2e4.<br \/>\n        <\/p>\n<div class=\"footnotes\">\n<ol class=\"footnotes\">\n<li id=\"footnote_1918_1\">\n           ++\uc5f0\uc0b0\uc790\ub294 \uc5b8\uc5b4 \uc774\ub984\uc5d0\ub3c4 \ub4e4\uc5b4\uac00 \uc788\uae30 \ub54c\ubb38\uc5d0 C++\uc774 \uc720\uba85\ud55c \ub9cc\ud07c \uc720\uba85\ud55c \uc5f0\uc0b0\uc790\uc774\ub2e4.<br \/>\n           <a href=\"#footnote_link_1918_1\"><br \/>\n            [\ubcf8\ubb38\uc73c\ub85c]<br \/>\n           <\/a>\n<\/li>\n<\/ol>\n<\/div>\n<p><script type=\"text\/javascript\">\n         tistoryFootnote.add(1918,1,\"++\\uc5f0\\uc0b0\\uc790\\ub294 \\uc5b8\\uc5b4 \\uc774\\ub984\\uc5d0\\ub3c4 \\ub4e4\\uc5b4\\uac00 \\uc788\\uae30 \\ub54c\\ubb38\\uc5d0 C++\\uc774 \\uc720\\uba85\\ud55c \\ub9cc\\ud07c \\uc720\\uba85\\ud55c \\uc5f0\\uc0b0\\uc790\\uc774\\ub2e4.\");\n        <\/script><\/p>\n<div style=\"width:100%;margin-top:30px;clear:both;height:30px\">\n<div style=\"width:31px;float:left;\">\n<a href=\"\/toolbar\/popup\/abuseReport\/?entryId=1918\" onclick=\"window.open(this.href, 'tistoryThisBlogPopup', 'width=550, height=510, toolbar=no, menubar=no, status=no, scrollbars=no'); return false;\"><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\uc2e0\uace0\" src=\"https:\/\/i0.wp.com\/t1.daumcdn.net\/tistory_admin\/static\/ico\/ico_spam_report.png\" style=\"border:0\"\/><br \/>\n<\/a>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>C\uc5b8\uc5b4\uc640 C++\uc5b8\uc5b4\uc5d0\uc11c\ub294 \uc5f0\uc0b0\uc790\uac00 \ub9ce\uc774 \uc788\ub2e4. \uc138\uacc4\uc5d0\uc11c \uac00\uc7a5 \uc720\uba85\ud55c \uc5f0\uc0b0\uc790\uc778 ++\uc744 \uc608\ub85c \ub4e4\uc5b4\ubcf4\uc790. [\uac01\uc8fc: 1 ] int n=0; \uc704\uc640 \uac19\uc774 \uc120\uc5b8\ub418\uc5b4 \uc788\ub2e4\uace0 \ud558\uc790. \uadf8\ub7fc n++; \uc774\ub807\uac8c \ud558\uba74 n=n+1; \uc774 \uc2e4\ud589\ub41c\ub2e4. ++n; \uc774\ub807\uac8c \ud574\ub3c4 n=n+1; \uc774 \uc2e4\ud589\ub41c\ub2e4. \ubb54 \ucc28\uc774\ub0d0&#8230;\ub77c\uace0 \ubb3b\ub294\ub2e4\uba74, \uc544\uc8fc \uc791\uc740 \ucc28\uc774\uac00 \uc788\ub2e4. \uc6b0\uc120, \ucd5c\uc885\uc801\uc73c\ub85c n=n+1;\uc774 \uc2e4\ud589\ub41c\ub2e4\ub294 \uc810\uc5d0\ub294 \ubcc0\ud654\uac00 \uc5c6\ub2e4. \ud558\uc9c0\ub9cc \ub2e4\uc74c\uacfc \uac19\uc774 \uc368\uba39\uc744 \uc218 \uc788\ub2e4. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-9090","post","type-post","status-publish","format-standard","hentry","category-12"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8o6gA-2mC","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/9090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9090"}],"version-history":[{"count":0,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/9090\/revisions"}],"wp:attachment":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9090"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}