{"id":20872,"date":"2024-11-19T13:06:11","date_gmt":"2024-11-19T05:06:11","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20872\/"},"modified":"2024-11-19T13:06:11","modified_gmt":"2024-11-19T05:06:11","slug":"%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8cnotepad%e4%b8%ad%e7%bc%96%e5%86%99%e7%9a%84c%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20872\/","title":{"rendered":"\u600e\u4e48\u8fd0\u884cnotepad++\u4e2d\u7f16\u5199\u7684c++\u7a0b\u5e8f"},"content":{"rendered":"<blockquote><p>\n  \u5728 notepad++ \u4e2d\u8fd0\u884c c++ \u7a0b\u5e8f\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a1. \u7f16\u8bd1\u4ee3\u7801\uff1b2. \uff08\u53ef\u9009\uff09\u9009\u62e9\u89e3\u91ca\u5668\uff1b3. \u8fd0\u884c\u7a0b\u5e8f\u3002\u63d0\u793a\uff1a\u786e\u4fdd\u4ee3\u7801\u65e0\u8bed\u6cd5\u9519\u8bef\uff0c\u5e76\u67e5\u770b &#8220;\u8f93\u51fa&#8221; \u7a97\u53e3\u4e2d\u7f16\u8bd1\u6216\u8fd0\u884c\u65f6\u7684\u9519\u8bef\u6d88\u606f\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/08\/2024040803271915546.jpg\" class=\"aligncenter\" title=\"\u600e\u4e48\u8fd0\u884cnotepad++\u4e2d\u7f16\u5199\u7684c++\u7a0b\u5e8f\u63d2\u56fe\" alt=\"\u600e\u4e48\u8fd0\u884cnotepad++\u4e2d\u7f16\u5199\u7684c++\u7a0b\u5e8f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u8fd0\u884c Notepad++ \u4e2d\u7f16\u5199\u7684 C++ \u7a0b\u5e8f<\/strong><\/p>\n<p>\u8981\u8fd0\u884c Notepad++ \u4e2d\u7f16\u5199\u7684 C++ \u7a0b\u5e8f\uff0c\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<p><strong>1. \u7f16\u8bd1\u7a0b\u5e8f\u4ee3\u7801<\/strong><\/p>\n<ul>\n<li>\u5728 Notepad++ \u4e2d\uff0c\u6253\u5f00\u60a8\u7684 C++ \u6e90\u6587\u4ef6\u3002<\/li>\n<li>\u70b9\u51fb\u83dc\u5355\u680f\u4e0a\u7684 &#8220;\u8fd0\u884c&#8221; &gt; &#8220;\u7f16\u8bd1&#8221;\u3002<\/li>\n<li>Notepad++ \u5c06\u4f7f\u7528\u9ed8\u8ba4\u7f16\u8bd1\u5668\uff08\u901a\u5e38\u662f GCC\uff09\u7f16\u8bd1\u60a8\u7684\u4ee3\u7801\u3002\u5982\u679c\u7f16\u8bd1\u6210\u529f\uff0c\u60a8\u5c06\u5728 &#8220;\u8f93\u51fa&#8221; \u7a97\u53e3\u4e2d\u770b\u5230 &#8220;\u7f16\u8bd1\u6210\u529f&#8221; \u6d88\u606f\u3002<\/li>\n<\/ul>\n<p><strong>2. \u9009\u62e9\u89e3\u91ca\u5668\uff08\u53ef\u9009\uff09<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u5982\u679c\u60a8\u8981\u4f7f\u7528\u5176\u4ed6\u7f16\u8bd1\u5668\u6216\u8c03\u8bd5\u5668\uff0c\u53ef\u4ee5\u4ece &#8220;\u8fd0\u884c&#8221; \u83dc\u5355\u4e2d\u9009\u62e9 &#8220;\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u547d\u4ee4&#8221;\u3002<\/li>\n<li>\n<p>\u5728 &#8220;\u547d\u4ee4&#8221; \u5b57\u6bb5\u4e2d\uff0c\u8f93\u5165\u60a8\u7684\u81ea\u5b9a\u4e49\u547d\u4ee4\u3002\u4f8b\u5982\uff0c\u8981\u4f7f\u7528 Clang \u7f16\u8bd1\u5668\uff0c\u8bf7\u8f93\u5165\uff1a<\/p>\n<pre>clang -std=c++17 -o output.exe<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<\/ul>\n<p><strong>3. \u8fd0\u884c\u7a0b\u5e8f<\/strong><\/p>\n<ul>\n<li>\u70b9\u51fb\u83dc\u5355\u680f\u4e0a\u7684 &#8220;\u8fd0\u884c&#8221; &gt; &#8220;\u8fd0\u884c&#8221;\uff0c\u6216\u6309 F5 \u952e\u3002<\/li>\n<li>Notepad++ \u5c06\u4f7f\u7528\u7f16\u8bd1\u5668\u751f\u6210\u7684\u6267\u884c\u6587\u4ef6\u8fd0\u884c\u60a8\u7684\u7a0b\u5e8f\u3002<\/li>\n<li>\u60a8\u5c06\u5728 &#8220;\u8f93\u51fa&#8221; \u7a97\u53e3\u4e2d\u770b\u5230\u7a0b\u5e8f\u8f93\u51fa\u3002<\/li>\n<\/ul>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u60a8\u7684\u4ee3\u7801\u6ca1\u6709\u8bed\u6cd5\u9519\u8bef\uff0c\u5426\u5219\u7f16\u8bd1\u4f1a\u5931\u8d25\u3002<\/li>\n<li>\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u83dc\u5355\u680f\u4e0a\u7684 &#8220;\u67e5\u770b&#8221; &gt; &#8220;\u7cfb\u7edf\u4fe1\u606f&#8221; \u67e5\u770b\u60a8\u4f7f\u7528\u7684\u7f16\u8bd1\u5668\u7248\u672c\u3002<\/li>\n<li>\u5982\u679c\u60a8\u5728\u8fd0\u884c\u7a0b\u5e8f\u65f6\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u68c0\u67e5 &#8220;\u8f93\u51fa&#8221; \u7a97\u53e3\u4e2d\u7684\u9519\u8bef\u6d88\u606f\u3002<\/li>\n<li>\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528 Notepad++ \u7684\u8c03\u8bd5\u5668\u6765\u9010\u6b65\u6267\u884c\u4ee3\u7801\u5e76\u67e5\u627e\u9519\u8bef\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884c++\u4e2d\u7f16\u5199\u7684++\u7a0b\u5e8f\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 notepad++ \u4e2d\u8fd0\u884c c++ \u7a0b\u5e8f\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a1. \u7f16\u8bd1\u4ee3\u7801\uff1b2. \uff08\u53ef\u9009\uff09\u9009\u62e9\u89e3\u91ca\u5668\uff1b3. \u8fd0\u884c\u7a0b\u5e8f\u3002\u63d0\u793a\uff1a\u786e\u4fdd\u4ee3\u7801\u65e0\u8bed\u6cd5\u9519\u8bef\uff0c\u5e76\u67e5\u770b &#8220;\u8f93\u51fa&#8221; \u7a97\u53e3\u4e2d\u7f16\u8bd1\u6216\u8fd0\u884c\u65f6\u7684\u9519\u8bef\u6d88\u606f\u3002 \u5982\u4f55\u8fd0\u884c Notepad++ \u4e2d\u7f16\u5199\u7684 C++ \u7a0b\u5e8f \u8981\u8fd0\u884c Notepad++ \u4e2d\u7f16\u5199\u7684 C++ \u7a0b\u5e8f\uff0c\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a 1. \u7f16\u8bd1\u7a0b\u5e8f\u4ee3\u7801 \u5728 Notepad++ \u4e2d\uff0c\u6253\u5f00\u60a8\u7684 C++ \u6e90\u6587\u4ef6\u3002 \u70b9\u51fb\u83dc\u5355\u680f\u4e0a\u7684 &#8220;\u8fd0\u884c&#8221; &gt; &#8220;\u7f16\u8bd1&#8221;\u3002 Notepad++ \u5c06\u4f7f\u7528\u9ed8\u8ba4\u7f16\u8bd1\u5668\uff08\u901a\u5e38\u662f GCC\uff09\u7f16\u8bd1\u60a8\u7684\u4ee3\u7801\u3002\u5982\u679c\u7f16\u8bd1\u6210\u529f\uff0c\u60a8\u5c06\u5728 &#8220;\u8f93\u51fa&#8221; \u7a97\u53e3\u4e2d\u770b\u5230 &#8220;\u7f16\u8bd1\u6210\u529f&#8221; \u6d88\u606f\u3002 2. \u9009\u62e9\u89e3\u91ca\u5668\uff08\u53ef\u9009\uff09 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u5982\u679c\u60a8\u8981\u4f7f\u7528\u5176\u4ed6\u7f16\u8bd1\u5668\u6216\u8c03\u8bd5\u5668\uff0c\u53ef\u4ee5\u4ece &#8220;\u8fd0\u884c&#8221; \u83dc\u5355\u4e2d\u9009\u62e9 &#8220;\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u547d\u4ee4&#8221;\u3002 \u5728 &#8220;\u547d\u4ee4&#8221; \u5b57\u6bb5\u4e2d\uff0c\u8f93\u5165\u60a8\u7684\u81ea\u5b9a\u4e49\u547d\u4ee4\u3002\u4f8b\u5982\uff0c\u8981\u4f7f\u7528 Clang \u7f16\u8bd1\u5668\uff0c\u8bf7\u8f93\u5165\uff1a clang -std=c++17 -o output.exe \u767b\u5f55\u540e\u590d\u5236 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-20872","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20872","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=20872"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20872\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}