{"id":20874,"date":"2024-11-19T14:45:03","date_gmt":"2024-11-19T06:45:03","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20874\/"},"modified":"2024-11-19T14:45:03","modified_gmt":"2024-11-19T06:45:03","slug":"notepad%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8cc%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20874\/","title":{"rendered":"notepad++\u600e\u4e48\u8fd0\u884cc\u7a0b\u5e8f"},"content":{"rendered":"<blockquote><p>\n  \u8981\u5982\u4f55\u5728 notepad++ \u4e2d\u8fd0\u884c c \u7a0b\u5e8f\uff1f1. \u5b89\u88c5 mingw\u30022. \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u6dfb\u52a0 mingw \u7684 bin \u8def\u5f84\u30023. \u521b\u5efa c \u7a0b\u5e8f\uff0c\u5982 hello.c\u30024. \u6309\u4e0b f5 \u7f16\u8bd1\u7a0b\u5e8f\u30025. \u7f16\u8bd1\u6210\u529f\u540e\uff0c\u7a0b\u5e8f\u5c06\u5728\u63a7\u5236\u53f0\u7a97\u53e3\u4e2d\u81ea\u52a8\u8fd0\u884c\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/08\/2024040803332111316.jpg\" class=\"aligncenter\" title=\"notepad++\u600e\u4e48\u8fd0\u884cc\u7a0b\u5e8f\u63d2\u56fe\" alt=\"notepad++\u600e\u4e48\u8fd0\u884cc\u7a0b\u5e8f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 Notepad++ \u4e2d\u8fd0\u884c C \u7a0b\u5e8f<\/strong><\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u5b89\u88c5 MinGW\uff08Minimalist GNU for Windows\uff09<\/strong><\/p>\n<p>\u8981\u7f16\u8bd1\u548c\u8fd0\u884c C \u7a0b\u5e8f\uff0c\u60a8\u9700\u8981\u5b89\u88c5 MinGW\uff0c\u5b83\u662f\u4e00\u4e2a Windows \u4e0a\u7684 GNU \u7f16\u8bd1\u5668\u5de5\u5177\u94fe\u3002\u4ece [MinGW \u7f51\u7ad9](https:\/\/sourceforge.net\/projects\/mingw\/) \u4e0b\u8f7d\u5e76\u5b89\u88c5 MinGW\u3002<\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 <strong>\u63a7\u5236\u9762\u677f<\/strong> &gt; <strong>\u7cfb\u7edf\u548c\u5b89\u5168<\/strong> &gt; <strong>\u7cfb\u7edf<\/strong> <\/li>\n<li>\u5355\u51fb <strong>\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e<\/strong> <\/li>\n<li>\u5728 <strong>\u9ad8\u7ea7<\/strong> \u9009\u9879\u5361\u4e2d\uff0c\u5355\u51fb <strong>\u73af\u5883\u53d8\u91cf<\/strong> <\/li>\n<li>\u5728 <strong>\u7cfb\u7edf\u53d8\u91cf<\/strong> \u90e8\u5206\u4e2d\uff0c\u67e5\u627e <strong>Path<\/strong> \u53d8\u91cf\u5e76\u5c06\u5176\u9009\u4e2d<\/li>\n<li>\n<p>\u5355\u51fb <strong>\u7f16\u8f91<\/strong>\uff0c\u5728 <strong>\u53d8\u91cf\u503c<\/strong> \u6846\u7684\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u8def\u5f84\uff1a<\/p>\n<ul>\n<li>C:MinGWin\uff08\u66ff\u6362\u4e3a MinGW \u7684\u5b89\u88c5\u76ee\u5f55\uff09<\/li>\n<\/ul>\n<\/li>\n<li>\u70b9\u51fb <strong>\u786e\u5b9a<\/strong> \u4fdd\u5b58\u66f4\u6539\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 3\uff1a\u521b\u5efa C \u7a0b\u5e8f<\/strong><\/p>\n<ul>\n<li>\u5728 Notepad++ \u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u4ef6\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/li>\n<\/ul>\n<pre>#include &lt;stdio.h&gt;\n\nint main() {\n    printf(\"Hello, world!\n\");\n    return 0;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u4fdd\u5b58\u6587\u4ef6\u4e3a hello.c\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 4\uff1a\u7f16\u8bd1\u7a0b\u5e8f<\/strong><\/p>\n<ul>\n<li>\u6309\u4e0b <strong>F5<\/strong> \u952e\u6216\u5355\u51fb <strong>\u8fd0\u884c<\/strong> \u83dc\u5355\u4e2d\u7684 <strong>\u7f16\u8bd1\u5f53\u524d\u6587\u4ef6<\/strong>\u3002<\/li>\n<li>Notepad++ \u5c06\u6253\u5f00\u4e00\u4e2a\u63a7\u5236\u53f0\u7a97\u53e3\uff0c\u5f00\u59cb\u7f16\u8bd1\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 5\uff1a\u8fd0\u884c\u7a0b\u5e8f<\/strong><\/p>\n<ul>\n<li>\u7f16\u8bd1\u6210\u529f\u540e\uff0c\u7a0b\u5e8f\u5c06\u81ea\u52a8\u5728\u63a7\u5236\u53f0\u7a97\u53e3\u4e2d\u8fd0\u884c\u3002<\/li>\n<li>\u60a8\u5c06\u770b\u5230\u4ee5\u4e0b\u8f93\u51fa\uff1a<\/li>\n<\/ul>\n<pre>Hello, world!<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f++\u600e\u4e48\u8fd0\u884cc\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>\u8981\u5982\u4f55\u5728 notepad++ \u4e2d\u8fd0\u884c c \u7a0b\u5e8f\uff1f1. \u5b89\u88c5 mingw\u30022. \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u6dfb\u52a0 mingw \u7684 bin \u8def\u5f84\u30023. \u521b\u5efa c \u7a0b\u5e8f\uff0c\u5982 hello.c\u30024. \u6309\u4e0b f5 \u7f16\u8bd1\u7a0b\u5e8f\u30025. \u7f16\u8bd1\u6210\u529f\u540e\uff0c\u7a0b\u5e8f\u5c06\u5728\u63a7\u5236\u53f0\u7a97\u53e3\u4e2d\u81ea\u52a8\u8fd0\u884c\u3002 \u5982\u4f55\u5728 Notepad++ \u4e2d\u8fd0\u884c C \u7a0b\u5e8f \u6b65\u9aa4 1\uff1a\u5b89\u88c5 MinGW\uff08Minimalist GNU for Windows\uff09 \u8981\u7f16\u8bd1\u548c\u8fd0\u884c C \u7a0b\u5e8f\uff0c\u60a8\u9700\u8981\u5b89\u88c5 MinGW\uff0c\u5b83\u662f\u4e00\u4e2a Windows \u4e0a\u7684 GNU \u7f16\u8bd1\u5668\u5de5\u5177\u94fe\u3002\u4ece [MinGW \u7f51\u7ad9](https:\/\/sourceforge.net\/projects\/mingw\/) \u4e0b\u8f7d\u5e76\u5b89\u88c5 MinGW\u3002 \u6b65\u9aa4 2\uff1a\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf \u6253\u5f00 \u63a7\u5236\u9762\u677f &gt; \u7cfb\u7edf\u548c\u5b89\u5168 &gt; \u7cfb\u7edf \u5355\u51fb \u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e \u5728 \u9ad8\u7ea7 [&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-20874","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20874","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=20874"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20874\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}