{"id":214,"date":"2023-08-18T18:04:49","date_gmt":"2023-08-18T10:04:49","guid":{"rendered":"http:\/\/blog.xjfvps.top\/index.php\/2023\/08\/18\/%e3%80%8ac%e5%a4%a7%e5%ad%a6%e6%95%99%e7%a8%8b%e3%80%8b%e8%af%bb%e4%b9%a6%e7%ac%94%e8%ae%b0%ef%bc%8811%e7%ab%a0-%e8%be%93%e5%85%a5%e8%be%93%e5%87%ba%e6%b5%81%ef%bc%89\/"},"modified":"2023-08-18T21:25:32","modified_gmt":"2023-08-18T13:25:32","slug":"%e3%80%8ac%e5%a4%a7%e5%ad%a6%e6%95%99%e7%a8%8b%e3%80%8b%e8%af%bb%e4%b9%a6%e7%ac%94%e8%ae%b0%ef%bc%8811%e7%ab%a0-%e8%be%93%e5%85%a5%e8%be%93%e5%87%ba%e6%b5%81%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.fs.cloudns.biz\/index.php\/2023\/08\/18\/%e3%80%8ac%e5%a4%a7%e5%ad%a6%e6%95%99%e7%a8%8b%e3%80%8b%e8%af%bb%e4%b9%a6%e7%ac%94%e8%ae%b0%ef%bc%8811%e7%ab%a0-%e8%be%93%e5%85%a5%e8%be%93%e5%87%ba%e6%b5%81%ef%bc%89\/","title":{"rendered":"\u300ac++\u5927\u5b66\u6559\u7a0b\u300b\u8bfb\u4e66\u7b14\u8bb0\uff0811\u7ae0 \u8f93\u5165\u8f93\u51fa\u6d41\uff09"},"content":{"rendered":"<p>&nbsp;<br \/>\n<P class=MsoNormal><SPAN lang=EN-US>1<\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0e<\/SPAN><SPAN lang=EN-US>cin<\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001<\/SPAN><SPAN lang=EN-US>cin.get()<\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001<\/SPAN><SPAN lang=EN-US>cin.getline()<\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US>cin: <\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8f93\u5165\u4e00\u7cfb\u5217\u5b57\u7b26\uff0c\u5176\u4e2d\u81ea\u52a8\u7565\u8fc7\u7a7a\u683c\u3001<\/SPAN><SPAN lang=EN-US>tab<\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001\u6362\u884c\u7b26\u7b49\u7a7a\u767d\u7b26\u3002\u9047\u5230\u6587\u4ef6\u7ed3\u675f\u7b26\u65f6\u8fd4\u56de<\/SPAN><SPAN lang=EN-US>0<\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0c\u4f46\u5e76\u4e0d\u628a\u8fd9\u4e2a<\/SPAN><SPAN lang=EN-US>0<\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u503c\u653e\u5230\u8f93\u5165\u5bf9\u8c61\u4e2d\u3002<\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US><?xml:namespace prefix = o ns = \"urn:schemas-microsoft-com:office:office\" \/><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US>cin.get(): <\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u63a5\u6536\u4e00\u4e2a\u8f93\u5165\u5b57\u7b26\uff08\u5305\u62ec\u7a7a\u767d\u7b26\uff09\uff0c\u8fd4\u56de\u8be5\u5b57\u7b26\u503c\uff0c\u9047\u5230\u6587\u4ef6\u7ed3\u675f\u7b26\u65f6\uff0c\u8fd4\u56de<\/SPAN><SPAN lang=EN-US>EOF<\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08\u5373\u8fd9\u4e2a\u6587\u4ef6\u7ed3\u675f\u7b26\uff09\u3002<\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><br \/>\n<P class=MsoNormal><SPAN lang=EN-US><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: #993366; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\"><\/SPAN><SPAN lang=EN-US style=\"COLOR: #993366\"><o:p><\/o:p><\/SPAN><\/B><\/P><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: #993366\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><br \/>\n<P><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US>2.peek<\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001<\/SPAN><SPAN lang=EN-US>putback<\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001<\/SPAN><SPAN lang=EN-US>ignore<\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 14pt; COLOR: #993366\">ignore<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;iostream.h&gt;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\">int main()<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\">{<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>char buf[30];<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;&#8220;enter a sentence: n&#8221;;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cin.ignore();<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cin.getline(buf,30);<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;buf&lt;&lt;endl;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>return 0;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: blue\">}<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8f93\u5165\u8f93\u51fa\u60c5\u51b5\uff1a<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">enter a sentence:<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">rtt<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">tt<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53bb\u6389\u4e86\u8f93\u5165\u6d41\u4e2d\u7b2c\u4e00\u4e2a\u5b57\u7b26\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 14pt; COLOR: #993366\">putback<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;iostream.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;ctype.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">int main()<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">{<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>char c,buf[30];<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>int i=0;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;&#8220;enter a sentence: n&#8221;;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>c=cin.get();<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>if( isdigit(c))<SPAN style=\"mso-tab-count: 1\"> <\/SPAN><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>cin.putback(c);<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"TEXT-INDENT: 18.05pt; mso-char-indent-count: 1.5\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">cin.getline(buf,30);<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;buf&lt;&lt;endl;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>return 0;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">}<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8f93\u5165\u8f93\u51fa\u60c5\u51b5\uff1a<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">1<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: #333399; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">enter a sentence:<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">rtt<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">tt<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">2<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: #333399; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">enter a sentence:<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">6tt<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">6tt<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: #993366; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53ef\u89c1\uff0c\u5f53\u8f93\u5165\u7b2c\u4e00\u4e2a\u662f\u6570\u5b57\u65f6\u5c06\u538b\u56de\u8f93\u5165\u6d41\uff0c\u7531<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #993366\">getline<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: #993366; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u518d\u63a5\u6536\u3002\u4f46<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #993366\">putback<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: #993366; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u597d\u50cf\u53ea\u80fd\u5904\u7406\u6700\u540e\u4e00\u4e2a<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #993366\">get<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: #993366; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\u5b57\u7b26\uff0c\u800c\u4e0d\u80fd\u7528\u4e8e<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #993366\">get<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: #993366; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5728<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #993366\">while<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: #993366; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5faa\u73af\u4f53\u4e2d\u7684\u60c5\u51b5\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #993366\">Msdn<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: #993366; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bf4\uff0c\u5982\u679c\u538b\u56de\u53bb\u7684\u5b57\u7b26\u4e0d\u662f\u521a\u521a\u4ece<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #993366\">get<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: #993366; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u83b7\u5f97\u7684\uff0c\u800c\u662f\u5176\u4ed6\u5b57\u7b26\u65f6\uff0c\u7ed3\u679c\u5c06\u662f\u672a\u5b9a\u4e49\u7684\u3002\u4f46\u521d\u6b65\u9a8c\u8bc1\uff0c\u538b\u56de\u5176\u4ed6\u5b57\u7b26\u65f6\u4e5f\u80fd\u6b63\u786e\u7684\u7528<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #993366\">get<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: #993366; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u518d\u53d6\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #993366\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 14pt; COLOR: #993366\">Peek<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u63a5\u6536\u4e00\u4e2a\u5b57\u7b26\uff0c\u5e76\u628a\u591a\u4f59\u8f93\u5165\u9664\u6362\u884c\u7b26\u5916\u90fd\u663e\u793a\u51fa\u6765<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;iostream.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;ctype.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">int main()<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">{<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>char c,p;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;&#8220;enter a sentence: n&#8221;;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cin&gt;&gt;c;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;c;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>while(cin.peek() != &#8216;n&#8217;)<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;(p=cin.get());<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>return 0;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">}<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">enter a sentence:<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">i am happy<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">i am happy<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 14pt; COLOR: purple\">read<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u63a5\u6536\u6307\u5b9a\u6570\u76ee\u7684\u5b57\u7b26\u5230\u6570\u7ec4\u4e2d\uff08\u53ef\u8bfb\u5165\u7a7a\u767d\u7b26\uff09\uff0c\u63d0\u524d\u7ed3\u675f\u7684\u8bdd\u8f93\u5165\u6587\u4ef6\u7ed3\u675f\u7b26\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 14pt; COLOR: purple\">gcount<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7edf\u8ba1\u521a\u624d\u7528<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">read<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bfb\u5165\u7684\u5b57\u7b26\u6570\u76ee\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">#include &lt;iostream.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">#include &lt;ctype.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">int main()<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">{<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>const int SIZE = 80;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>char buf[SIZE];<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;&#8220;Enter a sentence:n&#8221;;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cin.read(buf,20);<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;&#8220;The sentence entered was :n&#8221;;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout.write(buf,cin.gcount());<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;endl;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>return 0;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">}<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 14pt; COLOR: #993366\">Write<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4ece\u6570\u7ec4\u4e2d\u8f93\u51fa\u6307\u5b9a\u6570\u76ee\u7684\u5b57\u7b26\uff0c\u82e5\u8fd9\u4e2a\u6570\u76ee\u5927\u4e8e\u6570\u7ec4\u957f\u5ea6\uff0c\u5219\u8f93\u51fa\u6574\u4e2a\u6570\u7ec4\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;iostream.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;ctype.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">int main()<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">{<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout.write(&#8220;abc&#8221;,10);<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;endl;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>return 0;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">}<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8f93\u51fa\uff1a<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">abc<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 14pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6574\u6570\u7684\u57fa\u6570\uff1a<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 14pt; COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">Dec(<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5341\u8fdb\u5236<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">)<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">Oct(<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u516b\u8fdb\u5236<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">)<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">Hex(<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5341\u516d\u8fdb\u5236<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bbe\u7f6e\u57fa\u6570\u7684\u51fd\u6570<\/SPAN><SPAN lang=EN-US style=\"COLOR: purple\"> setbase(int n) ,n<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53ef\u4ee5\u662f<\/SPAN><SPAN lang=EN-US style=\"COLOR: purple\">10<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001<\/SPAN><SPAN lang=EN-US style=\"COLOR: purple\">8<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001\u6216<\/SPAN><SPAN lang=EN-US style=\"COLOR: purple\">16<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3002<\/SPAN><SPAN lang=EN-US style=\"COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: red; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5982\u679c\u4e0d\u660e\u786e\u7684\u6539\u53d8\u6d41\u7684\u57fa\u6570\uff0c\u6d41\u7684\u57fa\u6570\u662f\u4e0d\u53d8\u7684\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: red\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: red\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: red\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: red\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bbe\u7f6e\u6d6e\u70b9\u6570\u7cbe\u5ea6\uff1a<\/SPAN><SPAN lang=EN-US style=\"COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: purple\">setprecision <\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08\u5fc5\u987b\u5e26\u53c2\u6570\uff09<\/SPAN><SPAN lang=EN-US style=\"COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: purple\">precision <\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08\u65e0\u53c2\u6570\u65f6\u8fd4\u56de\u5f53\u524d\u8bbe\u7f6e\u7684\u7cbe\u5ea6\uff09<\/SPAN><SPAN lang=EN-US style=\"COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bbe\u7f6e\u540e\uff0c\u5bf9\u4ee5\u540e\u7684\u8f93\u51fa\u90fd\u6709\u6548\u3002<\/SPAN><SPAN lang=EN-US style=\"COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: purple\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: purple\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">#include &lt;iostream.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">#include &lt;ctype.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">#include &lt;iomanip.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">#include &lt;math.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">int main()<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">{<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>double root2=sqrt(2.0);<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>int place;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;setiosflags(ios ::fixed)<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;&lt;&#8220;Square root of 2 with precisions 0-9n&#8221;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;&lt;&#8220;precision se by the &#8220;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;&lt;&#8220;precision member function:&#8221;&lt;&lt;endl;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>for(place=0; place&lt;=9; place++)<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>{<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout.precision(place);<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;root2&lt;&lt;endl;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;&#8220;precision now is: &#8220;&lt;&lt;cout.precision()&lt;&lt;endl;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>for(place=0; place&lt;=9; place++)<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>{<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;setprecision(place)&lt;&lt;root2&lt;&lt;endl;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">\/\/<SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;&#8220;precision now is: &#8220;&lt;&lt;setprecision()&lt;&lt;endl;<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>return 0;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\">}<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 14pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bbe\u7f6e\u57df\u5bbd<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 14pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5982\u679c\u6240\u9700\u7684\u5bbd\u5ea6\u6bd4\u8bbe\u7f6e\u7684\u57df\u5bbd\u5c0f\uff0c\u7a7a\u4f4d\u7528\u586b\u5145\u5b57\u7b26\u586b\u5145\u3002\u5982\u679c\u663e\u793a\u6570\u636e\u6240\u9700\u7684\u5bbd\u5ea6\u6bd4\u8bbe\u7f6e\u7684\u57df\u5bbd\u5927\uff0c\u7cfb\u7edf\u8f93\u51fa\u6240\u6709\u4f4d\u3002\u57df\u5bbd\u8bbe\u7f6e\u4ec5\u5bf9\u4e0b\u4e00\u884c\u6d41\u8bfb\u5165\u6216\u6d41\u63d2\u5165\u6284\u505a\u6709\u6548\uff0c\u5728\u4e00\u6b21\u64cd\u4f5c\u5b8c\u540e\u88ab\u7f6e<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">0<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 14pt\">Setw<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 14pt\">Width<\/SPAN><SPAN style=\"FONT-SIZE: 14pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff1a<\/SPAN><SPAN style=\"COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8f93\u5165\u64cd\u4f5c\u63d0\u53d6\u5b57\u7b26\u4e32\u7684\u6700\u5927\u5bbd\u5ea6\u6bd4\u5b9a\u4e49\u7684\u57df\u5bbd\u5c0f<\/SPAN><SPAN lang=EN-US style=\"COLOR: purple\">1<\/SPAN><SPAN style=\"COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0c\u8fd9\u662f\u56e0\u4e3a\u5728\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u540e\u9762\u5fc5\u987b\u52a0\u4e0a\u4e00\u4e2a\u7a7a\u5b57\u7b26\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 14pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 14pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;iostream.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;ctype.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;iomanip.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">int main()<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">{<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>int w=4;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>char str[10];<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;&#8220;Enter a sentence:n&#8221;;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cin.width(5); \/\/<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: blue; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6bcf\u6b21\u53ea\u63a5\u6536<\/SPAN><SPAN lang=EN-US style=\"COLOR: blue\">4<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: blue; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2a\u5b57\u7b26\uff0c\u5176\u4ed6\u7684\u653e\u5728\u6d41\u4e2d\u7b49\u5f85\u63a5\u6536\u3002<\/SPAN><SPAN lang=EN-US style=\"COLOR: blue\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>while( cin&gt;&gt; str )<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>{<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout.width(w++); \/\/<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: blue; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5c06<\/SPAN><SPAN lang=EN-US style=\"COLOR: blue\">4<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: blue; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2a\u5b57\u7b26\u8f93\u51fa\uff0c\u8bbe\u7f6e\u6bcf\u6b21\u8f93\u51fa\u7684\u57df\u5bbd\u589e\u52a0<\/SPAN><SPAN lang=EN-US style=\"COLOR: blue\">1<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;str&lt;&lt;endl; \/\/<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: blue; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8f93\u51fa\u5b57\u7b26<\/SPAN><SPAN lang=EN-US style=\"COLOR: blue\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cin.width(5);<SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>\/\/<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: blue; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bbe\u7f6e\u63a5\u6536<\/SPAN><SPAN lang=EN-US style=\"COLOR: blue\">4<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"COLOR: blue; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2a\u5b57\u7b26<\/SPAN><SPAN lang=EN-US style=\"COLOR: blue\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>return 0;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">}<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8f93\u5165\u8f93\u51fa\u60c5\u51b5\uff1a<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">Enter a sentence:<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">happy new year<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">happ<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>y<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>new<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>year<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: #333399\">^Z<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5148\u8f93\u51fa<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">happ<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08\u56db\u4e2a\u5b57\u7b26\uff09\uff0c<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">y<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7559\u5728\u4e0b\u4e00\u6b21\u3002\u9047\u5230\u7a7a\u683c\u63a5\u6536\u7ed3\u675f\uff0c\u7b2c\u4e8c\u6b21\u53ea\u6709<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">y<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0c\u5230<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">y<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8f93\u51fa\u65f6\uff0c\u8f93\u51fa\u57df\u5bbd\u662f<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">5<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3002\u4e0b\u4e00\u4e2a\u63a5\u6536\u7684\u662f<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">new<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff08\u540e\u9762\u7684\u7a7a\u683c\u65ad\u5f00\u4e86\u63a5\u6536\uff09\uff0c&#8230;&#8230;<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 15pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5bf9\u9f50\uff08<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 15pt; COLOR: purple\">ios::left,ios::right,ios::internal<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 15pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 15pt; COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u9ed8\u8ba4\u662f\u53f3\u5bf9\u9f50<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US>Internal: <\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6807\u793a\u4e00\u4e2a\u6570\u7684\u7b26\u53f7\u4f4d\u5de6\u5bf9\u9f50\uff0c\u6570\u503c\u53f3\u5bf9\u9f50\u3002<\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bbe\u7f6e<\/SPAN><SPAN lang=EN-US style=\"COLOR: red\">left<\/SPAN><SPAN style=\"COLOR: red; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001<\/SPAN><SPAN lang=EN-US style=\"COLOR: red\">right<\/SPAN><SPAN style=\"COLOR: red; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001<\/SPAN><SPAN lang=EN-US style=\"COLOR: red\">internal<\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u65f6\uff0c<\/SPAN><SPAN lang=EN-US style=\"COLOR: red\">setf<\/SPAN><SPAN style=\"COLOR: red; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\u5fc5\u987b\u662f<\/SPAN><SPAN lang=EN-US style=\"COLOR: red\">ios::adjustfield<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"COLOR: red\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 15pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bbe\u7f6e\u586b\u5145\u5b57\u7b26\uff08<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 15pt; COLOR: purple\"> fill<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 15pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 15pt; COLOR: purple\">setfill<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 15pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 15pt; COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7a7a\u683c\u662f\u9ed8\u8ba4\u7684\u586b\u5145\u5b57\u7b26\u3002<\/SPAN><SPAN lang=EN-US>Fill<\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u51fd\u6570\u8fd4\u56de\u4ee5\u524d\u8bbe\u7f6e\u7684\u586b\u5145\u5b57\u7b26\u3002<\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 16pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6574\u6570\u6d41\u7684\u57fa\u6570\uff08<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 16pt; COLOR: purple\"> ios::dec ios::oct<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>ios::hex<SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>ios::showbase<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 16pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 16pt; COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">Showbase<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5f3a\u5236\u8f93\u51fa\u6574\u6570\u503c\u7684\u57fa\u6570\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">ios::uppercase <\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u51b3\u5b9a\u662f<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">0x<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8fd8\u662f<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">0X<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;iostream.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">#include &lt;iomanip.h&gt;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><o:p>&nbsp;<\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">int main()<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\">{<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>int x=100;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>cout&lt;&lt;setiosflags(ios::showbase | ios::uppercase)<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;&lt;x&lt;&lt;&#8216;n&#8217;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;&lt;oct&lt;&lt;x&lt;&lt;&#8216;n&#8217;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;&lt;hex&lt;&lt;x&lt;&lt;endl;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"COLOR: blue\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>return 0;<o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">}<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 15pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6d6e\u70b9\u6570\u548c\u79d1\u5b66\u8bb0\u6570\u6cd5\uff08<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 15pt; COLOR: purple\"> ios::scientific<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>ios::fixed<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 15pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 15pt; COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">secientific<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6807\u5fd7\u4f7f\u6d6e\u70b9\u6570\u6309\u79d1\u5b66\u8bb0\u6570\u6cd5\u8f93\u51fa\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">fixed<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6807\u5fd7\u4f7f\u6d6e\u70b9\u6570\u6309\u7167\u5b9a\u70b9\u683c\u5f0f\u8f93\u51fa\uff0c\u663e\u793a\u5c0f\u6570\u70b9\u53ca\u540e\u9762\u7684\u4f4d\u6570\uff08\u4f4d\u6570\u7684\u6307\u5b9a\u7531<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">precision<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u51b3\u5b9a\uff0c\u82e5\u6ca1\u8bbe\u7f6e\uff0c\u5219\u6309\u9ed8\u8ba4\uff0d\u5c0f\u6570\u540e<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">6<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4f4d\uff09\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8bbe\u7f6e\u53ca\u6e05\u9664\u683c\u5f0f\u6807\u5fd7\uff08<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"> flags<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>setiosflags<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>resetiosflags<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff09<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u65e0\u53c2\u6570\u7684<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">flags<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53ea\u8fd4\u56de\u683c\u5f0f\u6807\u5fd7\u7684\u5f53\u524d\u8bbe\u7f6e\uff08<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">long<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u578b\uff09\u3002\u5e26\u4e00\u4e2a<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">long<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u53c2\u6570\u7684<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">flags<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6309\u53c2\u6570\u7684\u6307\u5b9a\u683c\u5f0f\u8bbe\u7f6e\u6807\u5fd7\uff0c\u8fd4\u56de\u4ee5\u524d\u7684\u6807\u5fd7\u8bbe\u7f6e\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">cout<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7684<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">setf<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6210\u5458\u51fd\u6570\u6709\u4e24\u79cd\u5199\u6cd5\uff1a<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN-LEFT: 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">1\uff0e<SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">cout.setf(long)<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN-LEFT: 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt\"><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">2\uff0e<SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt; COLOR: purple\">cout.setf(long<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>a, long<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>b)<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u82e5<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">a<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u662f<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">ios::left ios::right<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>ios::internal <\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u90a3\u4e48<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">b<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5bf9\u5e94<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">ios::adjustfield<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u82e5<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">a<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u662f<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">ios::oct<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>ios::hex<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>ios::dec<SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/SPAN>b<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5bf9\u5e94<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"> ios::basefield<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u82e5<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">a<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u662f<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">ios::scientific<SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>ios::fixed<SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/SPAN>b<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5bf9\u5e94<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"> ios::floatfield<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><B style=\"mso-bidi-font-weight: normal\"><SPAN style=\"FONT-SIZE: 16pt; COLOR: purple; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u9519\u8bef\u6d41\u72b6\u6001<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 16pt; COLOR: purple\"><o:p><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5f53\u6d41\u4e2d\u53d1\u751f\u683c\u5f0f\u9519\u8bef\u65f6\uff0c\u8bbe\u7f6e<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">failbit<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5f53\u53d1\u751f\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u9519\u8bef\u65f6\uff0c\u8bbe\u7f6e<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">badbit<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u5982\u679c<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">eofbit<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">failbit<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3001<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">badbit<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u90fd\u6ca1\u6709\u8bbe\u7f6e\uff0c\u5219\u8bbe\u7f6e<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">goodbit<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6210\u5458\u51fd\u6570<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">rdstate<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u8fd4\u56de\u6d41\u7684\u9519\u8bef\u72b6\u6001\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6210\u5458\u51fd\u6570<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">clear<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u628a\u4e00\u4e2a\u6d41\u7684\u72b6\u6001\u6062\u590d\u4e3a&#8220;\u597d&#8221;\uff0c\u5982\uff1a<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">cin.clear()<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u6e05\u9664<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">cin<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0c\u5e76\u4e3a\u6d41\u8bbe\u7f6e<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\">goodbit<\/SPAN><SPAN style=\"FONT-SIZE: 10.5pt; FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u3002<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal><SPAN lang=EN-US style=\"FONT-SIZE: 10.5pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; 1\uff0ecin\u3001cin.get()\u3001cin.getline() cin &hellip; <a href=\"https:\/\/blog.fs.cloudns.biz\/index.php\/2023\/08\/18\/%e3%80%8ac%e5%a4%a7%e5%ad%a6%e6%95%99%e7%a8%8b%e3%80%8b%e8%af%bb%e4%b9%a6%e7%ac%94%e8%ae%b0%ef%bc%8811%e7%ab%a0-%e8%be%93%e5%85%a5%e8%be%93%e5%87%ba%e6%b5%81%ef%bc%89\/\">\u7ee7\u7eed\u9605\u8bfb <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":{"footnotes":""},"categories":[10,8,1],"tags":[14],"class_list":["post-214","post","type-post","status-publish","format-standard","hentry","category-c","category-8","category-uncategorized","tag-c"],"_links":{"self":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/comments?post=214"}],"version-history":[{"count":1,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/214\/revisions"}],"predecessor-version":[{"id":341,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/214\/revisions\/341"}],"wp:attachment":[{"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/media?parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/categories?post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fs.cloudns.biz\/index.php\/wp-json\/wp\/v2\/tags?post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}