{"id":909,"date":"2010-08-08T09:43:10","date_gmt":"2010-08-08T09:43:10","guid":{"rendered":"http:\/\/pchero21.com\/?p=909"},"modified":"2010-08-08T09:43:10","modified_gmt":"2010-08-08T09:43:10","slug":"%ed%95%9c-%eb%ac%b8%ec%9e%90%ec%94%a9-%eb%b2%84%ed%8d%bc%ec%97%90-%ec%b6%9c%eb%a0%a5%ed%95%98%eb%8a%94-put-%eb%a9%94%ec%86%8c%eb%93%9c","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=909","title":{"rendered":"\ud55c \ubb38\uc790\uc529 \ubc84\ud37c\uc5d0 \ucd9c\ub825\ud558\ub294 put \uba54\uc18c\ub4dc"},"content":{"rendered":"<p>&nbsp;\ucd9c\ub825 \uc2a4\ud2b8\ub9c1 \uc2a4\ud2b8\ub9bc\uc5d0\uc11c\ub3c4 put \uba54\uc18c\ub4dc\ub97c \uc774\uc6a9\ud558\uc5ec \ubc84\ud37c\uc5d0 \ud558\ub098\uc758 \ubb38\uc790\uc2dd \uc785\ub825\ud560 \uc218 \uc788\ub2e4. \uac04\ub2e8\ud55c \uc608\ub97c \ubcf4\uba74 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<div style=\"padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204);\">#include &lt;strstrea&gt;<br \/>\/* \uc6b0\ubd84\ud22c 10.04, g++-4.3.3 \ubc84\uc804\uc5d0\uc11c\ub294 \ub2e4\uc74c\uc758 \ud5e4\ub354\ud30c\uc77c\uc744 \uc0ac\uc6a9\ud558\ub3c4\ub85d \ud55c\ub2e4.<br \/>&nbsp;* #include &lt;iostream&gt;<br \/>&nbsp;* #include &lt;backward\/strstream&gt;<br \/>*\/<\/p>\n<p>using namespace std;<\/p>\n<p>void main(void)<br \/>{<br \/>&nbsp; ostrstream intStream;<br \/>&nbsp; char intData = &#8216;0&#8217;;<\/p>\n<p>&nbsp; \/\/ 1~10 \uae4c\uc9c0 \uc22b\uc790\uc640 \uacf5\ubc31\uc744 \ubc84\ud37c\uc5d0 \ucd9c\ub825<br \/>&nbsp; for(int count = 0; count &lt; 10; count++, intData++) {<br \/>&nbsp; &nbsp; intStream.put(intData);<br \/>&nbsp; &nbsp; intStream.put(&#8216; &#8216;);<br \/>&nbsp; &nbsp; if(intStream.fail()) {<br \/>&nbsp; &nbsp; &nbsp; cerr &lt;&lt; &#8220;\ubc84\ud37c\ub85c\uc758 \ucd9c\ub825 \uc5d0\ub7ec \ubc1c\uc0dd&#8221; &lt;&lt; endl;<br \/>&nbsp; &nbsp; &nbsp; return;<br \/>&nbsp; &nbsp; }<br \/>&nbsp; }<\/p>\n<p>&nbsp; \/\/ \ub9c8\uc9c0\ub9c9\uc5d0 NULL \ubb38\uc790 \uc785\ub825\ud6c4 \ud654\uba74\uc5d0 \ucd9c\ub825<br \/>&nbsp; intStream &lt;&lt; ends;<br \/>&nbsp; cout intStream.rdbuf() &lt;&lt; endl;<br \/>}<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;\ucd9c\ub825 \uc2a4\ud2b8\ub9c1 \uc2a4\ud2b8\ub9bc\uc5d0\uc11c\ub3c4 put \uba54\uc18c\ub4dc\ub97c \uc774\uc6a9\ud558\uc5ec \ubc84\ud37c\uc5d0 \ud558\ub098\uc758 \ubb38\uc790\uc2dd \uc785\ub825\ud560 \uc218 \uc788\ub2e4. \uac04\ub2e8\ud55c \uc608\ub97c \ubcf4\uba74 \ub2e4\uc74c\uacfc \uac19\ub2e4. #include &lt;strstrea&gt;\/* \uc6b0\ubd84\ud22c 10.04, g++-4.3.3 \ubc84\uc804\uc5d0\uc11c\ub294 \ub2e4\uc74c\uc758 \ud5e4\ub354\ud30c\uc77c\uc744 \uc0ac\uc6a9\ud558\ub3c4\ub85d \ud55c\ub2e4.&nbsp;* #include &lt;iostream&gt;&nbsp;* #include &lt;backward\/strstream&gt;*\/ using namespace std; void main(void){&nbsp; ostrstream intStream;&nbsp; char intData &hellip; <a href=\"http:\/\/pchero21.com\/?p=909\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[57],"tags":[128,666,687],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/909"}],"collection":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=909"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/909\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=909"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}