{"id":71,"date":"2026-08-31T15:31:00","date_gmt":"2026-08-31T07:31:00","guid":{"rendered":"https:\/\/decagrammaton.xyz\/?p=71"},"modified":"2026-09-17T15:33:14","modified_gmt":"2026-09-17T07:33:14","slug":"05-c%e8%af%ad%e8%a8%80%e5%87%bd%e6%95%b0%e5%9f%ba%e7%a1%80","status":"publish","type":"post","link":"https:\/\/decagrammaton.xyz\/?p=71","title":{"rendered":"05-C\u8bed\u8a00\u51fd\u6570\u57fa\u7840"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u51fd\u6570\uff0c\u8fd9\u4e2a\u4e0d\u540c\u4e8e\u6570\u5b66\u7684\u90a3\u4e2a<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u8ba4\u8bc6\u51fd\u6570<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u51fd\u6570\u662f\u4e00\u6bb5\u5177\u6709\u7279\u5b9a\u529f\u80fd\u3001\u53ef\u4ee5\u88ab\u8c03\u7528\u7684\u4ee3\u7801\u3002\u6211\u4eec\u53ef\u4ee5\u81ea\u5df1\u7f16\u5199\u51fd\u6570\u6765\u5236\u4f5c\u4e00\u4e2a\u529f\u80fd\u660e\u786e\u7684\u201c\u5de5\u5177\u201d\uff0c\u7136\u540e\u5728\u7a0b\u5e8f\u7684\u5176\u4ed6\u5730\u65b9\u8c03\u7528\u5b83\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u597d\u5904:\u52a0\u5f3a\u53ef\u7ef4\u62a4\u6027\uff0c\u53ef\u8bfb\u6027<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u51fd\u6570\u7684\u57fa\u672c\u7ed3\u6784<\/h2>\n\n\n\n<div class=\"sourceCode\" id=\"cb1\"><pre class=\"sourceCode c\"><code class=\"sourceCode c\"><span id=\"cb1-1\"><a href=\"#cb1-1\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb1-2\"><a href=\"#cb1-2\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>\u8fd4\u56de\u503c\u7c7b\u578b \u51fd\u6570\u540d<span class=\"op\">(<\/span>\u53c2\u6570<span class=\"op\">)<\/span><\/span>\n<span id=\"cb1-3\"><a href=\"#cb1-3\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"op\">{<\/span><\/span>\n<span id=\"cb1-4\"><a href=\"#cb1-4\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>    <span class=\"co\">\/\/ \u8bed\u53e5<\/span><\/span>\n<span id=\"cb1-5\"><a href=\"#cb1-5\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"op\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd4\u56de\u503c\u7c7b\u578b \u2192 \u51fd\u6570\u6700\u540e\u8fd4\u56de\u4ec0\u4e48\u7c7b\u578b\u7684\u6570\u636e \u51fd\u6570\u540d \u2192 \u51fd\u6570\u53eb\u4ec0\u4e48 \u53c2\u6570 \u2192\n\u8c03\u7528\u51fd\u6570\u65f6\u4f20\u5165\u7684\u6570\u636e<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u600e\u4e48\u5b9a\u4e49\u51fd\u6570<\/h3>\n\n\n\n<div class=\"sourceCode\" id=\"cb2\"><pre class=\"sourceCode c\"><code class=\"sourceCode c\"><span id=\"cb2-1\"><a href=\"#cb2-1\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb2-2\"><a href=\"#cb2-2\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"dt\">int<\/span> max<span class=\"op\">(<\/span><span class=\"dt\">int<\/span> a<span class=\"op\">,<\/span><span class=\"dt\">int<\/span> b<span class=\"op\">){<\/span><\/span>\n<span id=\"cb2-3\"><a href=\"#cb2-3\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb2-4\"><a href=\"#cb2-4\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; <span class=\"cf\">if<\/span><span class=\"op\">(<\/span>a<span class=\"op\">&gt;<\/span>b<span class=\"op\">){<\/span><\/span>\n<span id=\"cb2-5\"><a href=\"#cb2-5\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb2-6\"><a href=\"#cb2-6\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; &nbsp; <span class=\"cf\">return<\/span> a<span class=\"op\">;<\/span><\/span>\n<span id=\"cb2-7\"><a href=\"#cb2-7\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb2-8\"><a href=\"#cb2-8\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; <span class=\"op\">}<\/span><span class=\"cf\">else<\/span> <span class=\"cf\">if<\/span><span class=\"op\">(<\/span>a<span class=\"op\">&lt;<\/span>b<span class=\"op\">){<\/span><\/span>\n<span id=\"cb2-9\"><a href=\"#cb2-9\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb2-10\"><a href=\"#cb2-10\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; &nbsp; <span class=\"cf\">return<\/span> b<span class=\"op\">;<\/span><\/span>\n<span id=\"cb2-11\"><a href=\"#cb2-11\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb2-12\"><a href=\"#cb2-12\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; <span class=\"op\">}<\/span><span class=\"cf\">else<\/span><span class=\"op\">{<\/span><\/span>\n<span id=\"cb2-13\"><a href=\"#cb2-13\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb2-14\"><a href=\"#cb2-14\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; &nbsp; <span class=\"cf\">return<\/span> <span class=\"dv\">0<\/span><span class=\"op\">;<\/span><\/span>\n<span id=\"cb2-15\"><a href=\"#cb2-15\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb2-16\"><a href=\"#cb2-16\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; <span class=\"op\">}<\/span><\/span>\n<span id=\"cb2-17\"><a href=\"#cb2-17\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb2-18\"><a href=\"#cb2-18\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"op\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u600e\u4e48\u8c03\u7528<\/h2>\n\n\n\n<div class=\"sourceCode\" id=\"cb3\"><pre class=\"sourceCode c\"><code class=\"sourceCode c\"><span id=\"cb3-1\"><a href=\"#cb3-1\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"pp\">#include <\/span><span class=\"im\">&lt;stdio.h&gt;<\/span><\/span>\n<span id=\"cb3-2\"><a href=\"#cb3-2\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"dt\">int<\/span> max<span class=\"op\">(<\/span><span class=\"dt\">int<\/span> a<span class=\"op\">,<\/span><span class=\"dt\">int<\/span> b<span class=\"op\">){<\/span><\/span>\n<span id=\"cb3-3\"><a href=\"#cb3-3\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-4\"><a href=\"#cb3-4\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a> <span class=\"cf\">if<\/span><span class=\"op\">(<\/span>a<span class=\"op\">&gt;<\/span>b<span class=\"op\">){<\/span><\/span>\n<span id=\"cb3-5\"><a href=\"#cb3-5\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-6\"><a href=\"#cb3-6\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a> <span class=\"cf\">return<\/span> a<span class=\"op\">;<\/span><\/span>\n<span id=\"cb3-7\"><a href=\"#cb3-7\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-8\"><a href=\"#cb3-8\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a> <span class=\"op\">}<\/span><span class=\"cf\">else<\/span><span class=\"op\">{<\/span><\/span>\n<span id=\"cb3-9\"><a href=\"#cb3-9\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-10\"><a href=\"#cb3-10\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"cf\">return<\/span> <span class=\"dv\">0<\/span><span class=\"op\">;<\/span><\/span>\n<span id=\"cb3-11\"><a href=\"#cb3-11\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-12\"><a href=\"#cb3-12\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a> <span class=\"op\">}<\/span><\/span>\n<span id=\"cb3-13\"><a href=\"#cb3-13\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"op\">}<\/span><\/span>\n<span id=\"cb3-14\"><a href=\"#cb3-14\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-15\"><a href=\"#cb3-15\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"dt\">int<\/span> main<span class=\"op\">(){<\/span><\/span>\n<span id=\"cb3-16\"><a href=\"#cb3-16\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-17\"><a href=\"#cb3-17\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; <span class=\"dt\">int<\/span> x <span class=\"op\">=<\/span><span class=\"dv\">0<\/span><span class=\"op\">;<\/span><\/span>\n<span id=\"cb3-18\"><a href=\"#cb3-18\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-19\"><a href=\"#cb3-19\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; <span class=\"dt\">int<\/span> y <span class=\"op\">=<\/span><span class=\"dv\">0<\/span><span class=\"op\">;<\/span><\/span>\n<span id=\"cb3-20\"><a href=\"#cb3-20\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-21\"><a href=\"#cb3-21\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; printf<span class=\"op\">(<\/span><span class=\"st\">\"enter to x\"<\/span><span class=\"op\">);<\/span><\/span>\n<span id=\"cb3-22\"><a href=\"#cb3-22\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-23\"><a href=\"#cb3-23\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; scanf<span class=\"op\">(<\/span><span class=\"st\">\"<\/span><span class=\"sc\">%d<\/span><span class=\"st\">\"<\/span><span class=\"op\">,&amp;<\/span>x<span class=\"op\">);<\/span><\/span>\n<span id=\"cb3-24\"><a href=\"#cb3-24\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-25\"><a href=\"#cb3-25\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; printf<span class=\"op\">(<\/span><span class=\"st\">\"enter to y\"<\/span><span class=\"op\">);<\/span><\/span>\n<span id=\"cb3-26\"><a href=\"#cb3-26\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-27\"><a href=\"#cb3-27\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; scanf<span class=\"op\">(<\/span><span class=\"st\">\"<\/span><span class=\"sc\">%d<\/span><span class=\"st\">\"<\/span><span class=\"op\">,&amp;<\/span>y<span class=\"op\">);<\/span><\/span>\n<span id=\"cb3-28\"><a href=\"#cb3-28\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-29\"><a href=\"#cb3-29\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; <span class=\"dt\">int<\/span> gg <span class=\"op\">=<\/span> max<span class=\"op\">(<\/span>x<span class=\"op\">,<\/span>y<span class=\"op\">);<\/span><\/span>\n<span id=\"cb3-30\"><a href=\"#cb3-30\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-31\"><a href=\"#cb3-31\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; <span class=\"cf\">if<\/span> gg <span class=\"op\">==<\/span> <span class=\"dv\">0<\/span><span class=\"op\">{<\/span><\/span>\n<span id=\"cb3-32\"><a href=\"#cb3-32\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-33\"><a href=\"#cb3-33\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; &nbsp; printf<span class=\"op\">(<\/span><span class=\"st\">\"\u4e00\u6837\u5927\"<\/span><span class=\"op\">);<\/span><\/span>\n<span id=\"cb3-34\"><a href=\"#cb3-34\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-35\"><a href=\"#cb3-35\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; <span class=\"op\">}<\/span><span class=\"cf\">else<\/span><span class=\"op\">{<\/span><\/span>\n<span id=\"cb3-36\"><a href=\"#cb3-36\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-37\"><a href=\"#cb3-37\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>printf<span class=\"op\">(<\/span><span class=\"st\">\"<\/span><span class=\"sc\">%d<\/span><span class=\"st\">\u5927\"<\/span><span class=\"op\">,<\/span>gg<span class=\"op\">)<\/span><\/span>\n<span id=\"cb3-38\"><a href=\"#cb3-38\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-39\"><a href=\"#cb3-39\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>&nbsp; <span class=\"op\">}<\/span><\/span>\n<span id=\"cb3-40\"><a href=\"#cb3-40\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb3-41\"><a href=\"#cb3-41\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"op\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u51fd\u6570<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u53c2\u6570<\/p>\n<\/blockquote>\n\n\n\n<div class=\"sourceCode\" id=\"cb4\"><pre class=\"sourceCode c\"><code class=\"sourceCode c\"><span id=\"cb4-1\"><a href=\"#cb4-1\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"dt\">int<\/span> max<span class=\"op\">(<\/span><span class=\"dt\">int<\/span> a<span class=\"op\">,<\/span> <span class=\"dt\">int<\/span> b<span class=\"op\">)<\/span><span class=\"co\">\/\/a,b\u5c31\u662f\u53c2\u6570\uff0c\u5c31\u662f\u53c2\u4e0e\u8fd0\u7b97\u7684\u6570\u5b57\u67092\u4e2a\uff0c\u6b64\u5904\u7684a,b\u53ef\u4ee5\u662f\u5176\u4ed6\u540d\u5b57<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u8c03\u7528 1.<\/p>\n<\/blockquote>\n\n\n\n<div class=\"sourceCode\" id=\"cb5\"><pre class=\"sourceCode c\"><code class=\"sourceCode c\"><span id=\"cb5-1\"><a href=\"#cb5-1\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a> max<span class=\"op\">(<\/span>x<span class=\"op\">,<\/span>y<span class=\"op\">);<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<div class=\"sourceCode\" id=\"cb6\"><pre class=\"sourceCode c\"><code class=\"sourceCode c\"><span id=\"cb6-1\"><a href=\"#cb6-1\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"dt\">int<\/span> c <span class=\"op\">=<\/span> max<span class=\"op\">(<\/span>x<span class=\"op\">,<\/span>y<span class=\"op\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<div class=\"sourceCode\" id=\"cb7\"><pre class=\"sourceCode c\"><code class=\"sourceCode c\"><span id=\"cb7-1\"><a href=\"#cb7-1\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"pp\">#include <\/span><span class=\"im\">&lt;stdio.h&gt;<\/span><\/span>\n<span id=\"cb7-2\"><a href=\"#cb7-2\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"dt\">void<\/span> greeting<span class=\"op\">(){<\/span><\/span>\n<span id=\"cb7-3\"><a href=\"#cb7-3\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>  printf<span class=\"op\">(<\/span><span class=\"st\">\"hello\"<\/span><span class=\"op\">);<\/span><span class=\"co\">\/\/void\u6ca1\u6709\u8fd4\u56de\u7684\u4e1c\u897f<\/span><\/span>\n<span id=\"cb7-4\"><a href=\"#cb7-4\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"op\">}<\/span><\/span>\n<span id=\"cb7-5\"><a href=\"#cb7-5\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"dt\">int<\/span> main<span class=\"op\">(){<\/span><\/span>\n<span id=\"cb7-6\"><a href=\"#cb7-6\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>  greeting<span class=\"op\">();<\/span><span class=\"co\">\/\/\u6240\u4ee5void\u4e0d\u9700\u8981\u4e1c\u897f\u63a5\u7740\uff0c\u800c\u662f\u76f4\u63a5\u4f7f\u7528<\/span><\/span>\n<span id=\"cb7-7\"><a href=\"#cb7-7\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"op\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u8fd4\u56de\u503c<\/p>\n<\/blockquote>\n\n\n\n<div class=\"sourceCode\" id=\"cb8\"><pre class=\"sourceCode c\"><code class=\"sourceCode c\"><span id=\"cb8-1\"><a href=\"#cb8-1\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"pp\">#include <\/span><span class=\"im\">&lt;stdio.h&gt;<\/span><\/span>\n<span id=\"cb8-2\"><a href=\"#cb8-2\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"dt\">int<\/span> max<span class=\"op\">(<\/span><span class=\"dt\">int<\/span> a<span class=\"op\">,<\/span><span class=\"dt\">int<\/span> b<span class=\"op\">){<\/span><\/span>\n<span id=\"cb8-3\"><a href=\"#cb8-3\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb8-4\"><a href=\"#cb8-4\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a> <span class=\"cf\">if<\/span><span class=\"op\">(<\/span>a<span class=\"op\">&gt;<\/span>b<span class=\"op\">){<\/span><\/span>\n<span id=\"cb8-5\"><a href=\"#cb8-5\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb8-6\"><a href=\"#cb8-6\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a> <span class=\"cf\">return<\/span> a<span class=\"op\">;<\/span> <span class=\"co\">\/\/\u8fd4\u56dea\u7684\u503c<\/span><\/span>\n<span id=\"cb8-7\"><a href=\"#cb8-7\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a> <span class=\"op\">}<\/span><span class=\"cf\">else<\/span><span class=\"op\">{<\/span><\/span>\n<span id=\"cb8-8\"><a href=\"#cb8-8\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb8-9\"><a href=\"#cb8-9\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"cf\">return<\/span> b<span class=\"op\">;<\/span> <span class=\"co\">\/\/\u8fd4\u56deb\u7684\u503c<\/span><\/span>\n<span id=\"cb8-10\"><a href=\"#cb8-10\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a>        <span class=\"co\">\/\/return \u4e0d\u4ec5\u53ef\u4ee5\u8fd4\u56de\u7ed3\u679c\uff0c\u8fd8\u4f1a\u7ed3\u675f\u5f53\u524d\u51fd\u6570\u3002<\/span><\/span>\n<span id=\"cb8-11\"><a href=\"#cb8-11\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><\/span>\n<span id=\"cb8-12\"><a href=\"#cb8-12\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a> <span class=\"op\">}<\/span><\/span>\n<span id=\"cb8-13\"><a href=\"#cb8-13\" aria-hidden=\"true\" tabindex=\"-1\" target=\"_blank\"  rel=\"nofollow\" ><\/a><span class=\"op\">}<\/span><\/span><\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u51fd\u6570\uff0c\u8fd9\u4e2a\u4e0d\u540c\u4e8e\u6570\u5b66\u7684\u90a3\u4e2a \u8ba4\u8bc6\u51fd\u6570 \u51fd\u6570\u662f\u4e00\u6bb5\u5177\u6709\u7279\u5b9a\u529f\u80fd\u3001\u53ef\u4ee5\u88ab\u8c03\u7528\u7684\u4ee3\u7801\u3002\u6211\u4eec\u53ef\u4ee5\u81ea\u5df1\u7f16\u5199\u51fd\u6570\u6765\u5236\u4f5c\u4e00\u4e2a\u529f\u80fd\u660e\u786e\u7684\u201c\u5de5\u5177\u201d\uff0c &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/decagrammaton.xyz\/index.php?rest_route=\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/decagrammaton.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/decagrammaton.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/decagrammaton.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/decagrammaton.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":1,"href":"https:\/\/decagrammaton.xyz\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/decagrammaton.xyz\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions\/72"}],"wp:attachment":[{"href":"https:\/\/decagrammaton.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/decagrammaton.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/decagrammaton.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}