{"id":18,"date":"2019-07-23T15:51:25","date_gmt":"2019-07-23T07:51:25","guid":{"rendered":"https:\/\/www.book11111.com\/?p=18"},"modified":"2019-07-23T16:18:10","modified_gmt":"2019-07-23T08:18:10","slug":"%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89","status":"publish","type":"post","link":"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/","title":{"rendered":"\u57fa\u672c\u7b97\u6cd5-\u4e24\u4e2a\u6570\u4ea4\u6362\uff08swap\uff09"},"content":{"rendered":"\n<p>\uff08swap\uff09\u4ea4\u6362\u7b97\u6cd5\u662f\u7b97\u6cd5\u4e2d\u6700\u7b80\u5355\u7684\u4e00\u79cd\u7b97\u6cd5\uff0c\u6700\u7b80\u5355\u7684\u601d\u8def\u5c31\u662f\u5229\u7528\u7b2c\u4e09\u4e2a\u53d8\u91cf\u3002<\/p>\n\n\n\n<p>\u7a0b\u5e8f\u5f88\u7b80\u5355\uff0c\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#include &lt;stdio.h>\n\u00a0\nvoid swap_error(int x,int y);\nvoid swap_p(int *px,int *py);\n\u00a0\nint main(void)\n{\n  int a,b,tmp;\n  a=1;\n  b=10;\n  printf(\"a=%d,b=%d\\n\",a,b);\n  swap_p(&amp;a,&amp;b);\n  printf(\"a=%d,b=%d\\n\",a,b);\n  return 0;\n}\n\u00a0\nvoid swap_error(int x,int y)\n{\n  int tmp;\n  tmp = x;\n  x = y;\n  y = tmp;\n}\n\u00a0\nvoid swap_p(int *px,int *py)\n{\n  int tmp;\n  tmp = *px;\n  *px = *py;\n  *py = tmp;\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uff08swap\uff09\u4ea4\u6362\u7b97\u6cd5\u662f\u7b97\u6cd5\u4e2d\u6700\u7b80\u5355\u7684\u4e00\u79cd\u7b97\u6cd5\uff0c\u6700\u7b80\u5355\u7684\u601d\u8def\u5c31\u662f\u5229\u7528\u7b2c\u4e09\u4e2a\u53d8\u91cf\u3002 \u7a0b\u5e8f\u5f88\u7b80\u5355\uff0c\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u672c\u7b97\u6cd5-\u4e24\u4e2a\u6570\u4ea4\u6362\uff08swap\uff09 - \u6c88\u8d85\u7684\u535a\u5ba2<\/title>\n<meta name=\"description\" content=\"arm,dsp,pcb,fpga,zynq,\u5e38\u7528\u8f6f\u4ef6altium designed,\u7b97\u6cd5\" \/>\n<link rel=\"canonical\" href=\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/\u57fa\u672c\u7b97\u6cd5-\u4e24\u4e2a\u6570\u4ea4\u6362\uff08swap\uff09\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u672c\u7b97\u6cd5-\u4e24\u4e2a\u6570\u4ea4\u6362\uff08swap\uff09 - \u6c88\u8d85\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"arm,dsp,pcb,fpga,zynq,\u5e38\u7528\u8f6f\u4ef6altium designed,\u7b97\u6cd5\" \/>\n<meta property=\"og:url\" content=\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/\u57fa\u672c\u7b97\u6cd5-\u4e24\u4e2a\u6570\u4ea4\u6362\uff08swap\uff09\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6c88\u8d85\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-23T07:51:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-23T08:18:10+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/116.62.123.213\/#website\",\"url\":\"http:\/\/116.62.123.213\/\",\"name\":\"\\u6c88\\u8d85\\u7684\\u535a\\u5ba2\",\"description\":\"arm,dsp,pcb,fpga,zynq,\\u5e38\\u7528\\u8f6f\\u4ef6altium designed,\\u7b97\\u6cd5\",\"publisher\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/116.62.123.213\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/#webpage\",\"url\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/\",\"name\":\"\\u57fa\\u672c\\u7b97\\u6cd5-\\u4e24\\u4e2a\\u6570\\u4ea4\\u6362\\uff08swap\\uff09 - \\u6c88\\u8d85\\u7684\\u535a\\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/116.62.123.213\/#website\"},\"datePublished\":\"2019-07-23T07:51:25+00:00\",\"dateModified\":\"2019-07-23T08:18:10+00:00\",\"description\":\"arm,dsp,pcb,fpga,zynq,\\u5e38\\u7528\\u8f6f\\u4ef6altium designed,\\u7b97\\u6cd5\",\"breadcrumb\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/\",\"url\":\"http:\/\/116.62.123.213\/\",\"name\":\"\\u9996\\u9875\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/\",\"url\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/\",\"name\":\"\\u57fa\\u672c\\u7b97\\u6cd5-\\u4e24\\u4e2a\\u6570\\u4ea4\\u6362\\uff08swap\\uff09\"}}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/#webpage\"},\"author\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"headline\":\"\\u57fa\\u672c\\u7b97\\u6cd5-\\u4e24\\u4e2a\\u6570\\u4ea4\\u6362\\uff08swap\\uff09\",\"datePublished\":\"2019-07-23T07:51:25+00:00\",\"dateModified\":\"2019-07-23T08:18:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/%e5%9f%ba%e6%9c%ac%e7%ae%97%e6%b3%95-%e4%b8%a4%e4%b8%aa%e6%95%b0%e4%ba%a4%e6%8d%a2%ef%bc%88swap%ef%bc%89\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\",\"name\":\"\\u6c88\\u8d85\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/116.62.123.213\/#personlogo\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/40261dfac05f2d465bb2abf96c1c4e8ceaf45876aec9d52e6b86ef40372d06f0?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/40261dfac05f2d465bb2abf96c1c4e8ceaf45876aec9d52e6b86ef40372d06f0?s=96&d=identicon&r=g\",\"caption\":\"\\u6c88\\u8d85\"},\"logo\":{\"@id\":\"http:\/\/116.62.123.213\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":6,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":29,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/18\/revisions\/29"}],"wp:attachment":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}