{"id":904,"date":"2023-04-19T18:41:24","date_gmt":"2023-04-19T10:41:24","guid":{"rendered":"https:\/\/white-night.club\/?p=904"},"modified":"2023-11-09T11:07:56","modified_gmt":"2023-11-09T03:07:56","slug":"study11","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/04\/19\/study11\/","title":{"rendered":"\u5355\u8bcd\u7684\u5206\u7c7b"},"content":{"rendered":"\n<p>\u5728\u8bcd\u6cd5\u5206\u6790\u4e2d\uff0c\u5355\u8bcd\u53ef\u88ab\u5206\u4e3a\u4ee5\u4e0b\u51e0\u7c7b\uff1a<\/p>\n\n\n\n<ul>\n<li>\u5173\u952e\u5b57<\/li>\n\n\n\n<li>\u6807\u8bc6\u7b26<\/li>\n\n\n\n<li>\u5e38\u6570<\/li>\n\n\n\n<li>\u8fd0\u7b97\u7b26<\/li>\n\n\n\n<li>\u5206\u754c\u7b26<\/li>\n<\/ul>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u5355\u8bcd\u7684\u6765\u6e90<\/p>\n<cite><em>\u72ec\u7acb\u610f\u4e49\u7684\u57fa\u672c\u8bed\u6cd5\u5355\u4f4d<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u6211\u4eec\u5148\u6765\u770b\u770b\u5355\u8bcd\u662f\u4ece\u54ea\u6765\u7684\u3002<\/p>\n\n\n\n<p>\u5728\u5bf9\u7a0b\u5e8f\u7f16\u8bd1\u7684\u7b2c\u4e00\u6b65\uff0c\u8bcd\u6cd5\u5206\u6790\u5668\u4f1a\u5c06\u6574\u4e2a\u6e90\u7a0b\u5e8f\u89c6\u4e3a\u4e00\u4e2a\u201c\u5b57\u7b26\u6d41\u201d\uff08\u533a\u522b\u4e8e\u5b57\u7b26\u4e32\uff0c\u5b57\u7b26\u6d41\u7531\u5355\u4e2a\u5b57\u7b26\u7ec4\u6210\uff09\uff0c\u4ece\u5de6\u5230\u53f3\u5bf9\u6574\u4e2a\u5b57\u7b26\u6d41\u8fdb\u884c\u626b\u63cf\uff0c\u5207\u5206\u51fa\u5176\u4e2d\u7531\u5b57\u7b26\u7ec4\u6210\u7684\u5355\u8bcd(word)\uff0c\u5c06\u5176\u53d8\u5316\u6210\u201d\u7b49\u4ef7\u7684\u201c\u5355\u8bcd\u6d41\u3002\u800c\u8fd9\u4e9b\u5355\u8bcd\u662f\u6709\u7740\u72ec\u7acb\u610f\u4e49\u7684\u57fa\u672c\u8bed\u6cd5\u5355\u4f4d\uff0c\u53c8\u79f0\u8bb0\u53f7(token)\u3002<\/p>\n\n\n\n<p>\u7b80\u5355\u5730\u8bf4\uff0c<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">\u8bcd\u6cd5\u5206\u6790\u5668\u8bfb\u5165\u6e90\u7a0b\u5e8f\u7684\u4ee3\u7801\uff0c\u5c06\u5176\u8f6c\u6362\u4e3a\u5bf9\u5e94\u7684\u5355\u8bcd\u5e8f\u5217\uff0c\u5e76\u5254\u9664\u4ee3\u7801\u4e2d\u7684\u7a7a\u683c\uff0c\u6ce8\u91ca\u7b49\u4e0d\u5f71\u54cd\u7a0b\u5e8f\u8bed\u4e49\u7684\u5b57\u7b26<\/mark>\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982\u7ed9\u5b9a\u4e00\u4e2aC++\u7a0b\u5e8f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;iostream&gt;\nusing namespace std;\n\nint main()\n{\n\tstring a;\n\ta=\"Hello World\";\n\tcout&lt;&lt;a;\n}<\/code><\/pre>\n\n\n\n<p>\u5bf9\u5e94\u8bcd\u6cd5\u5206\u6790\u5668\u6765\u8bf4\uff0c\u8be5\u7a0b\u5e8f\u7684\u7b2c\u4e00\u884c\u7ec4\u6210\u5982\u4e0b<\/p>\n\n\n\n<p class=\"has-text-align-center\"><em>#\u3001i\u3001n\u3001c\u3001l\u3001u\u3001d\u3001e\u3001\u25af (<strong>\u7a7a\u683c<\/strong>)\u3001&lt;\u3001i\u3001o\u3001s\u3001t\u3001r\u3001e\u3001a\u3001m\u3001&gt;\u3001 ENTER(<strong>\u6362\u884c\u952eENTER<\/strong>)<\/em><\/p>\n\n\n\n<p>\u800c\u8bcd\u6cd5\u5206\u6790\u5668\u4f1a\u81ea\u52a8\u5254\u9664\u5176\u4e2d\u7684\u7a7a\u683c\u548c\u6ce8\u91ca\u7b49\u65e0\u5173\u5b57\u7b26\uff0c\u5e76\u5c06\u7b2c\u4e00\u884c\u8f6c\u6362\u4e3a<\/p>\n\n\n\n<p class=\"has-text-align-center\"><em>#\u3001include\u3001&lt;\u3001iostream\u3001&gt;<\/em><\/p>\n\n\n\n<p>\u6240\u5f97\u5230\u7684\u5c31\u662f\u5355\u8bcd\uff08\u6216\u8bb0\u53f7\uff09\uff0c\u53ef\u4ee5\u770b\u5230\u7a0b\u5e8f\u7684\u7b2c\u4e00\u884c\u88ab\u8f6c\u6362\u6210\u4e86\u7531\u4e94\u4e2a\u5355\u8bcd\u7ec4\u6210\u7684\u5355\u8bcd\u5e8f\u5217\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p class=\"has-luminous-vivid-amber-color has-text-color\">\u5355\u8bcd\u7684\u5206\u7c7b<\/p>\n<cite><em>\u5173\u952e\u5b57\u3001\u6807\u8bc6\u7b26\u3001\u5e38\u6570\u3001\u8fd0\u7b97\u7b26\u3001\u5206\u754c\u7b26<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u5355\u8bcd\u53ef\u88ab\u5206\u4e3a\u4ee5\u4e0b\u4e94\u7c7b\uff1a<\/p>\n\n\n\n<ul>\n<li>\u5173\u952e\u5b57(key word)\n<ul>\n<li>\u4e5f\u79f0\u57fa\u672c\u5b57\u3002\u6bd4\u5982\u6761\u4ef6\u8bed\u53e5\u7684if\uff0c\u5faa\u73af\u8bed\u53e5\u7684for\u3001while\u7b49\u90fd\u5c5e\u4e8e\u5173\u952e\u5b57\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u6807\u8bc6\u7b26(identifier)\n<ul>\n<li>\u81ea\u5b9a\u4e49\u7684\u53d8\u91cf\u540d\u6216\u51fd\u6570\u540d\u7b49\uff0c\u7528\u6765\u8868\u793a\u5404\u79cd\u540d\u5b57\u3002\u5982\u201cint num=10\u201d\u4e2d\u7684num\u5c31\u662f\u6807\u8bc6\u7b26\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u5e38\u6570(constant)\n<ul>\n<li>\u53ef\u5206\u4e3a\u6574\u5e38\u6570\uff0c\u5b9e\u5e38\u6570\uff0c\u5b57\u7b26\u4e32\u5e38\u6570\u3002\u6bd4\u598212.34\u5c31\u662f\u5b9e\u5e38\u6570\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u8fd0\u7b97\u7b26(operator)\n<ul>\n<li>\u53ef\u5206\u4e3a\u7b97\u672f\u8fd0\u7b97\u7b26\uff0c\u903b\u8f91\u8fd0\u7b97\u7b26\uff0c\u5173\u7cfb\u8fd0\u7b97\u7b26\u3002\u5982\u201c+\uff0c-\u201d\u662f\u7b97\u672f\u8fd0\u7b97\u7b26\uff0c\u201c=\uff0c&lt;=\u201d\u662f\u5173\u7cfb\u8fd0\u7b97\u7b26\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u5206\u754c\u7b26(separator)\n<ul>\n<li>\u4e5f\u88ab\u79f0\u4e3a\u754c\u9650\u7b26\u3002\u5305\u62ec\u9017\u53f7\uff0c\u5206\u53f7\uff0c\u62ec\u53f7\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u952e\u5b57\uff0c\u6807\u8bc6\u7b26\uff0c\u5e38\u6570\uff0c\u8fd0\u7b97\u7b26\uff0c\u5206\u754c\u7b26<\/p>\n","protected":false},"author":1,"featured_media":2985,"comment_status":"open","ping_status":"closed","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[26,46],"tags":[27],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/904"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=904"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/904\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/2985"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}