{"id":60519,"date":"2023-10-28T17:38:32","date_gmt":"2023-10-28T09:38:32","guid":{"rendered":"\/\/www.viralrail.com\/?p=60519"},"modified":"2023-10-28T17:38:32","modified_gmt":"2023-10-28T09:38:32","slug":"phsjdeyydcyyhs","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/60519.html","title":{"rendered":"Putchar\u51fd\u6570\uff1a\u7b80\u5355\u800c\u6709\u7528\u7684C\u8bed\u8a00\u51fd\u6570"},"content":{"rendered":"
Putchar\u51fd\u6570\u662fC\u8bed\u8a00\u4e2d\u6700\u7b80\u5355\u800c\u6709\u7528\u7684\u51fd\u6570\u4e4b\u4e00\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5728\u7ec8\u7aef\u8f93\u51fa\u4e00\u4e2a\u5b57\u7b26\u3002Putchar\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u663e\u793a\u4e00\u4e2a\u5b57\u7b26\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u663e\u793a\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002\u5b83\u7684\u5b9a\u4e49\u662f\uff1aint putchar(int c)\uff0c\u5176\u4e2dc\u662f\u8981\u8f93\u51fa\u7684\u5b57\u7b26\u3002<\/p>\n
Putchar\u51fd\u6570\u7684\u7528\u6cd5\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728\u7a0b\u5e8f\u4e2d\u8c03\u7528\u5b83\u5c31\u53ef\u4ee5\u4e86\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n
#include <stdio.h> int main() <\/p>
{<\/p>
int c;<\/p>
\/\/ \u4ece\u6807\u51c6\u8f93\u5165\u4e2d\u8bfb\u53d6\u4e00\u4e2a\u5b57\u7b26<\/p>
c = getchar();<\/p>
\/\/ \u5c06\u5b57\u7b26\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa<\/p>
putchar(c);<\/p>
return 0;<\/p>
}<\/p><\/code><\/pre>\n
\u4e0a\u9762\u7684\u7a0b\u5e8f\u4f1a\u4ece\u6807\u51c6\u8f93\u5165\u4e2d\u8bfb\u53d6\u4e00\u4e2a\u5b57\u7b26\uff0c\u7136\u540e\u5c06\u8be5\u5b57\u7b26\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u3002<\/p>\n
Putchar\u51fd\u6570\u7684\u4f18\u52bf<\/h2>\n
Putchar\u51fd\u6570\u7684\u6700\u5927\u4f18\u52bf\u5728\u4e8e\u5b83\u7684\u7b80\u5355\u6027\u3002\u5b83\u53ea\u9700\u8981\u4e00\u884c\u4ee3\u7801\u5c31\u53ef\u4ee5\u5b9e\u73b0\u8f93\u51fa\u4e00\u4e2a\u5b57\u7b26\uff0c\u800c\u4e0d\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u590d\u6742\u7684\u51fd\u6570\u3002\u6b64\u5916\uff0c\u5b83\u4e5f\u53ef\u4ee5\u7528\u6765\u8f93\u51fa\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u8fd9\u4f7f\u5f97\u5b83\u66f4\u52a0\u5b9e\u7528\u3002<\/p>\n
\u603b\u7ed3<\/h2>\n
Putchar\u51fd\u6570\u662fC\u8bed\u8a00\u4e2d\u6700\u7b80\u5355\u800c\u6709\u7528\u7684\u51fd\u6570\u4e4b\u4e00\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5728\u7ec8\u7aef\u8f93\u51fa\u4e00\u4e2a\u5b57\u7b26\u6216\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/strong>Putchar\u51fd\u6570\u7684\u7528\u6cd5\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728\u7a0b\u5e8f\u4e2d\u8c03\u7528\u5b83\u5c31\u53ef\u4ee5\u4e86\u3002\u5b83\u7684\u6700\u5927\u4f18\u52bf\u5728\u4e8e\u5b83\u7684\u7b80\u5355\u6027\uff0c\u5b83\u53ea\u9700\u8981\u4e00\u884c\u4ee3\u7801\u5c31\u53ef\u4ee5\u5b9e\u73b0\u8f93\u51fa\u4e00\u4e2a\u5b57\u7b26\uff0c\u800c\u4e0d\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u590d\u6742\u7684\u51fd\u6570\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Putchar\u51fd\u6570\u662fC\u8bed\u8a00\u4e2d\u6700\u7b80\u5355\u800c\u6709\u7528\u7684\u51fd\u6570\u4e4b\u4e00\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5728\u7ec8\u7aef\u8f93\u51fa\u4e00\u4e2a\u5b57\u7b26\u3002Putchar\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u663e\u793a\u4e00\u4e2a\u5b57\u7b26\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u663e\u793a\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002\u5b83\u7684\u5b9a\u4e49\u662f\uff1aintp<\/p>\n","protected":false},"author":1,"featured_media":1839,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-60519","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/60519"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=60519"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/60519\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/1839"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=60519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=60519"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=60519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}