{"id":37456,"date":"2024-11-26T16:16:54","date_gmt":"2024-11-26T08:16:54","guid":{"rendered":"https:\/\/fwq.ai\/blog\/37456\/"},"modified":"2024-11-26T16:16:54","modified_gmt":"2024-11-26T08:16:54","slug":"win7%e6%80%8e%e4%b9%88%e7%94%a8crt","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/37456\/","title":{"rendered":"win7\u600e\u4e48\u7528crt"},"content":{"rendered":"<blockquote><p>\n  \u5728 windows 7 \u4e2d\u4f7f\u7528 crt \u9700\u542f\u7528 cmd \u7a97\u53e3\u7684\u5b57\u7b26\u6a21\u5f0f\u3001\u6253\u5f00 cmd \u7a97\u53e3\u5e76\u542f\u7528\u6269\u5c55\u5185\u5b58 (xms)\u3001\u52a0\u8f7d crt \u5e93\u3001\u7f16\u8bd1\u548c\u94fe\u63a5\u7a0b\u5e8f\u3001\u8fd0\u884c\u7a0b\u5e8f\uff0c\u6ce8\u610f\u9700\u5305\u542b crt \u5934\u6587\u4ef6\u3001\u7a0b\u5e8f\u4e0d\u6d89\u53ca\u56fe\u5f62\u754c\u9762\u3001\u4f7f\u7528\u8f83\u65b0 c++ \u6807\u51c6\u5e93\u529f\u80fd\u53ef\u80fd\u9700\u8c03\u6574\u7f16\u8bd1\u5668\u5f00\u5173\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202409\/25\/2024092512451754643.jpg\" class=\"aligncenter\" title=\"win7\u600e\u4e48\u7528crt\u63d2\u56fe\" alt=\"win7\u600e\u4e48\u7528crt\u63d2\u56fe\" \/><\/p>\n<h2>Win7 \u4f7f\u7528 CRT \u7684\u65b9\u6cd5<\/h2>\n<h3>\u5f00\u95e8\u89c1\u5c71\uff1a<\/h3>\n<p>\u5982\u4f55\u5728 Win7 \u7cfb\u7edf\u4e2d\u4f7f\u7528 CRT (\u5b57\u7b26\u6a21\u5f0f\u4e0b\u7684\u8fd0\u884c\u65f6\u5e93)\uff1f<\/p>\n<h3>\u8be6\u7ec6\u89e3\u7b54\uff1a<\/h3>\n<p>CRT \u662f\u5fae\u8f6f\u63d0\u4f9b\u7684\u7528\u4e8e\u5728\u5b57\u7b26\u6a21\u5f0f\u4e0b\u8fd0\u884c\u7a0b\u5e8f\u7684\u5e93\u3002\u5728 Win7 \u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u4f7f\u7528 CRT\uff1a<\/p>\n<ol>\n<li> <strong>\u542f\u7528 CMD \u7a97\u53e3\u7684\u5b57\u7b26\u6a21\u5f0f\u3002<\/strong> \u53f3\u952e\u5355\u51fb\u684c\u9762\u4e0a\u7684 CMD \u56fe\u6807\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002\u5728\u201c\u9009\u9879\u201d\u9009\u9879\u5361\u4e2d\uff0c\u52fe\u9009\u201c\u4f7f\u7528\u65e7\u7248\u63a7\u5236\u53f0\u201d\u590d\u9009\u6846\u3002<\/li>\n<li>\n<p><strong>\u6253\u5f00 CMD \u7a97\u53e3\u5e76\u542f\u7528\u6269\u5c55\u5185\u5b58 (XMS)\u3002<\/strong> \u5728 CMD \u7a97\u53e3\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5e76\u6309 Enter\uff1a<\/p>\n<pre>lh \/l<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<li>\n<p><strong>\u52a0\u8f7d CRT \u5e93\u3002<\/strong> \u5728 CMD \u7a97\u53e3\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5e76\u6309 Enter\uff1a<\/p>\n<pre>link \/subsystem:console<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<li>\n<p><strong>\u7f16\u8bd1\u548c\u94fe\u63a5\u4f60\u7684\u7a0b\u5e8f\u3002<\/strong> \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u7f16\u8bd1\u548c\u94fe\u63a5\u4f60\u7684\u7a0b\u5e8f\uff1a<\/p>\n<pre>cl \/Tc YourProgram.c\nlink \/subsystem:console YourProgram.obj<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<li>\n<p><strong>\u8fd0\u884c\u4f60\u7684\u7a0b\u5e8f\u3002<\/strong> \u5728 CMD \u7a97\u53e3\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8\u4f60\u7684\u7a0b\u5e8f\uff1a<\/p>\n<pre>YourProgram.exe<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<\/ol>\n<h3>\u6ce8\u610f\u4e8b\u9879\uff1a<\/h3>\n<ul>\n<li>\u786e\u4fdd\u4f60\u7684\u7a0b\u5e8f\u4e2d\u5305\u542b\u4e86 #include \u6765\u5305\u542b CRT \u5934\u6587\u4ef6\u3002 <\/li>\n<li>\u5982\u679c\u4f60\u7684\u7a0b\u5e8f\u9700\u8981\u4f7f\u7528\u56fe\u5f62\u754c\u9762\u529f\u80fd\uff0c\u5219\u65e0\u6cd5\u5728\u5b57\u7b26\u6a21\u5f0f\u4e0b\u8fd0\u884c\u3002<\/li>\n<li>\u5982\u679c\u4f60\u7684\u7a0b\u5e8f\u4f7f\u7528\u8f83\u65b0\u7684 C++ \u529f\u80fd\uff0c\u5219\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u4e0d\u540c\u7684\u7f16\u8bd1\u5668\u5f00\u5173\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662fwin7\u600e\u4e48\u7528crt\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 windows 7 \u4e2d\u4f7f\u7528 crt \u9700\u542f\u7528 cmd \u7a97\u53e3\u7684\u5b57\u7b26\u6a21\u5f0f\u3001\u6253\u5f00 cmd \u7a97\u53e3\u5e76\u542f\u7528\u6269\u5c55\u5185\u5b58 (xms)\u3001\u52a0\u8f7d crt \u5e93\u3001\u7f16\u8bd1\u548c\u94fe\u63a5\u7a0b\u5e8f\u3001\u8fd0\u884c\u7a0b\u5e8f\uff0c\u6ce8\u610f\u9700\u5305\u542b crt \u5934\u6587\u4ef6\u3001\u7a0b\u5e8f\u4e0d\u6d89\u53ca\u56fe\u5f62\u754c\u9762\u3001\u4f7f\u7528\u8f83\u65b0 c++ \u6807\u51c6\u5e93\u529f\u80fd\u53ef\u80fd\u9700\u8c03\u6574\u7f16\u8bd1\u5668\u5f00\u5173\u3002 Win7 \u4f7f\u7528 CRT \u7684\u65b9\u6cd5 \u5f00\u95e8\u89c1\u5c71\uff1a \u5982\u4f55\u5728 Win7 \u7cfb\u7edf\u4e2d\u4f7f\u7528 CRT (\u5b57\u7b26\u6a21\u5f0f\u4e0b\u7684\u8fd0\u884c\u65f6\u5e93)\uff1f \u8be6\u7ec6\u89e3\u7b54\uff1a CRT \u662f\u5fae\u8f6f\u63d0\u4f9b\u7684\u7528\u4e8e\u5728\u5b57\u7b26\u6a21\u5f0f\u4e0b\u8fd0\u884c\u7a0b\u5e8f\u7684\u5e93\u3002\u5728 Win7 \u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u4f7f\u7528 CRT\uff1a \u542f\u7528 CMD \u7a97\u53e3\u7684\u5b57\u7b26\u6a21\u5f0f\u3002 \u53f3\u952e\u5355\u51fb\u684c\u9762\u4e0a\u7684 CMD \u56fe\u6807\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002\u5728\u201c\u9009\u9879\u201d\u9009\u9879\u5361\u4e2d\uff0c\u52fe\u9009\u201c\u4f7f\u7528\u65e7\u7248\u63a7\u5236\u53f0\u201d\u590d\u9009\u6846\u3002 \u6253\u5f00 CMD \u7a97\u53e3\u5e76\u542f\u7528\u6269\u5c55\u5185\u5b58 (XMS)\u3002 \u5728 CMD \u7a97\u53e3\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5e76\u6309 Enter\uff1a lh \/l \u767b\u5f55\u540e\u590d\u5236 \u52a0\u8f7d CRT \u5e93\u3002 \u5728 CMD [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-37456","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/37456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=37456"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/37456\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=37456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=37456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=37456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}