{"id":20925,"date":"2024-11-19T15:40:14","date_gmt":"2024-11-19T07:40:14","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20925\/"},"modified":"2024-11-19T15:40:14","modified_gmt":"2024-11-19T07:40:14","slug":"notepad%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8cc%e8%af%ad%e8%a8%80","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20925\/","title":{"rendered":"notepad++\u5982\u4f55\u8fd0\u884cC\u8bed\u8a00"},"content":{"rendered":"<blockquote><p>\n  notepad++ \u672c\u8eab\u4e0d\u80fd\u8fd0\u884c c \u8bed\u8a00\u7a0b\u5e8f\uff0c\u9700\u8981\u4e00\u4e2a\u5916\u90e8\u7f16\u8bd1\u5668\u6765\u7f16\u8bd1\u548c\u6267\u884c\u4ee3\u7801\u3002\u4e3a\u4e86\u4f7f\u7528\u5916\u90e8\u7f16\u8bd1\u5668\uff0c\u53ef\u4ee5\u6309\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u8bbe\u7f6e\uff1a1. \u4e0b\u8f7d\u5e76\u5b89\u88c5 c \u8bed\u8a00\u7f16\u8bd1\u5668\uff1b2. \u5728 notepad++ \u4e2d\u521b\u5efa\u81ea\u5b9a\u4e49\u5de5\u5177\uff0c\u5c06\u7f16\u8bd1\u5668\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84\u548c\u53c2\u6570\u914d\u7f6e\u597d\uff1b3. \u521b\u5efa c \u8bed\u8a00\u7a0b\u5e8f\u5e76\u4fdd\u5b58\u4e3a .c \u6587\u4ef6\u6269\u5c55\u540d\uff1b4. \u9009\u62e9 c \u8bed\u8a00\u7a0b\u5e8f\u6587\u4ef6\uff0c\u4ece\u201c\u8fd0\u884c\u201d\u83dc\u5355\u4e2d\u9009\u62e9\u81ea\u5b9a\u4e49\u5de5\u5177\u8fdb\u884c\u7f16\u8bd1\uff1b5. \u67e5\u770b\u7f16\u8bd1\u7ed3\u679c\uff0c\u8f93\u51fa\u7f16\u8bd1\u9519\u8bef\u6216\u6210\u529f\u6d88\u606f\u3002\u5982\u679c\u7f16\u8bd1\u6210\u529f\uff0c\u5c06\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/08\/2024040810062534716.jpg\" class=\"aligncenter\" title=\"notepad++\u5982\u4f55\u8fd0\u884cC\u8bed\u8a00\u63d2\u56fe\" alt=\"notepad++\u5982\u4f55\u8fd0\u884cC\u8bed\u8a00\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528 Notepad++ \u8fd0\u884c C \u8bed\u8a00<\/strong><\/p>\n<p>Notepad++ \u662f\u4e00\u6b3e\u6587\u672c\u7f16\u8f91\u5668\uff0c\u4e0d\u5177\u5907\u8fd0\u884c C \u8bed\u8a00\u7a0b\u5e8f\u7684\u80fd\u529b\u3002\u8981\u8fd0\u884c C \u8bed\u8a00\u7a0b\u5e8f\uff0c\u4f60\u9700\u8981\u4e00\u4e2a C \u8bed\u8a00\u7f16\u8bd1\u5668\uff0c\u4f8b\u5982 gcc \u6216 clang\u3002<\/p>\n<p><strong>\u4f7f\u7528\u5916\u90e8\u7f16\u8bd1\u5668\u8fd0\u884c C \u8bed\u8a00\u7a0b\u5e8f<\/strong><\/p>\n<p>\u8981\u5728 Notepad++ \u4e2d\u4f7f\u7528\u5916\u90e8\u7f16\u8bd1\u5668\u8fd0\u884c C \u8bed\u8a00\u7a0b\u5e8f\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ol>\n<li> <strong>\u4e0b\u8f7d\u5e76\u5b89\u88c5 C \u8bed\u8a00\u7f16\u8bd1\u5668\uff1a<\/strong>\u4ece GCC \u6216 Clang \u7684\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u76f8\u5e94\u7684\u7f16\u8bd1\u5668\u3002<\/li>\n<li> <strong>\u914d\u7f6e Notepad++\uff1a<\/strong>\u6253\u5f00 Notepad++\uff0c\u8f6c\u5230\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u9996\u9009\u9879\u201d&gt;\u201c\u5de5\u5177\u201d\u3002\u5728\u201c\u81ea\u5b9a\u4e49\u5de5\u5177\u201d\u9009\u9879\u5361\u4e0b\uff0c\u5355\u51fb\u201c\u65b0\u5efa\u201d\u3002<\/li>\n<li> <strong>\u521b\u5efa\u81ea\u5b9a\u4e49\u5de5\u5177\uff1a<\/strong>\u5728\u201c\u6807\u9898\u201d\u5b57\u6bb5\u4e2d\uff0c\u8f93\u5165\u201cC \u7f16\u8bd1\u201d\u3002\u5728\u201c\u547d\u4ee4\u201d\u5b57\u6bb5\u4e2d\uff0c\u8f93\u5165\u7f16\u8bd1\u5668\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u4f8b\u5982 gcc\u3002\u5728\u201c\u53c2\u6570\u201d\u5b57\u6bb5\u4e2d\uff0c\u8f93\u5165 $(FULL_CURRENT_PATH)\uff0c\u8fd9\u5c06\u628a\u5f53\u524d\u6587\u4ef6\u7684\u8def\u5f84\u4f5c\u4e3a\u7f16\u8bd1\u5668\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u3002<\/li>\n<li> <strong>\u4fdd\u5b58\u66f4\u6539\uff1a<\/strong>\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u4fdd\u5b58\u81ea\u5b9a\u4e49\u5de5\u5177\u3002<\/li>\n<li> <strong>\u521b\u5efa C \u8bed\u8a00\u7a0b\u5e8f\uff1a<\/strong>\u4f7f\u7528 Notepad++ \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u672c\u6587\u4ef6\uff0c\u5e76\u4fdd\u5b58\u4e3a .c \u6587\u4ef6\u6269\u5c55\u540d\uff08\u4f8b\u5982 example.c\uff09\u3002<\/li>\n<li> <strong>\u7f16\u8bd1\u7a0b\u5e8f\uff1a<\/strong>\u9009\u4e2d\u5305\u542b C \u8bed\u8a00\u7a0b\u5e8f\u7684\u6587\u4ef6\uff0c\u7136\u540e\u4ece\u201c\u8fd0\u884c\u201d\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u81ea\u5b9a\u4e49\u5de5\u5177\u201d&gt;\u201cC \u7f16\u8bd1\u201d\u3002<\/li>\n<li> <strong>\u67e5\u770b\u7f16\u8bd1\u7ed3\u679c\uff1a<\/strong>\u7f16\u8bd1\u5668\u5c06\u8f93\u51fa\u6216\u6210\u529f\u6d88\u606f\u3002\u5982\u679c\u7f16\u8bd1\u6210\u529f\uff0c\u5b83\u5c06\u751f\u6210\u4e00\u4e2a\u540d\u4e3a example.exe \u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/li>\n<\/ol>\n<p><strong>\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668\u8fd0\u884c C \u8bed\u8a00\u7a0b\u5e8f<\/strong><\/p>\n<p>\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668\u6765\u8fd0\u884c C \u8bed\u8a00\u7a0b\u5e8f\uff0c\u800c\u4e0d\u5fc5\u5728\u672c\u5730\u5b89\u88c5\u7f16\u8bd1\u5668\u3002\u4e00\u4e9b\u6d41\u884c\u7684\u5728\u7ebf\u7f16\u8bd1\u5668\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>[Replit](https:\/\/replit.com\/languages\/c)<\/li>\n<li>[CodeChef IDE](https:\/\/www.codechef.com\/ide)<\/li>\n<li>[Wandbox](https:\/\/wandbox.org\/)<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f++\u5982\u4f55\u8fd0\u884cC\u8bed\u8a00\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>notepad++ \u672c\u8eab\u4e0d\u80fd\u8fd0\u884c c \u8bed\u8a00\u7a0b\u5e8f\uff0c\u9700\u8981\u4e00\u4e2a\u5916\u90e8\u7f16\u8bd1\u5668\u6765\u7f16\u8bd1\u548c\u6267\u884c\u4ee3\u7801\u3002\u4e3a\u4e86\u4f7f\u7528\u5916\u90e8\u7f16\u8bd1\u5668\uff0c\u53ef\u4ee5\u6309\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u8bbe\u7f6e\uff1a1. \u4e0b\u8f7d\u5e76\u5b89\u88c5 c \u8bed\u8a00\u7f16\u8bd1\u5668\uff1b2. \u5728 notepad++ \u4e2d\u521b\u5efa\u81ea\u5b9a\u4e49\u5de5\u5177\uff0c\u5c06\u7f16\u8bd1\u5668\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84\u548c\u53c2\u6570\u914d\u7f6e\u597d\uff1b3. \u521b\u5efa c \u8bed\u8a00\u7a0b\u5e8f\u5e76\u4fdd\u5b58\u4e3a .c \u6587\u4ef6\u6269\u5c55\u540d\uff1b4. \u9009\u62e9 c \u8bed\u8a00\u7a0b\u5e8f\u6587\u4ef6\uff0c\u4ece\u201c\u8fd0\u884c\u201d\u83dc\u5355\u4e2d\u9009\u62e9\u81ea\u5b9a\u4e49\u5de5\u5177\u8fdb\u884c\u7f16\u8bd1\uff1b5. \u67e5\u770b\u7f16\u8bd1\u7ed3\u679c\uff0c\u8f93\u51fa\u7f16\u8bd1\u9519\u8bef\u6216\u6210\u529f\u6d88\u606f\u3002\u5982\u679c\u7f16\u8bd1\u6210\u529f\uff0c\u5c06\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002 \u5982\u4f55\u4f7f\u7528 Notepad++ \u8fd0\u884c C \u8bed\u8a00 Notepad++ \u662f\u4e00\u6b3e\u6587\u672c\u7f16\u8f91\u5668\uff0c\u4e0d\u5177\u5907\u8fd0\u884c C \u8bed\u8a00\u7a0b\u5e8f\u7684\u80fd\u529b\u3002\u8981\u8fd0\u884c C \u8bed\u8a00\u7a0b\u5e8f\uff0c\u4f60\u9700\u8981\u4e00\u4e2a C \u8bed\u8a00\u7f16\u8bd1\u5668\uff0c\u4f8b\u5982 gcc \u6216 clang\u3002 \u4f7f\u7528\u5916\u90e8\u7f16\u8bd1\u5668\u8fd0\u884c C \u8bed\u8a00\u7a0b\u5e8f \u8981\u5728 Notepad++ \u4e2d\u4f7f\u7528\u5916\u90e8\u7f16\u8bd1\u5668\u8fd0\u884c C \u8bed\u8a00\u7a0b\u5e8f\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u4e0b\u8f7d\u5e76\u5b89\u88c5 C \u8bed\u8a00\u7f16\u8bd1\u5668\uff1a\u4ece GCC \u6216 Clang \u7684\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u76f8\u5e94\u7684\u7f16\u8bd1\u5668\u3002 \u914d\u7f6e Notepad++\uff1a\u6253\u5f00 Notepad++\uff0c\u8f6c\u5230\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u9996\u9009\u9879\u201d&gt;\u201c\u5de5\u5177\u201d\u3002\u5728\u201c\u81ea\u5b9a\u4e49\u5de5\u5177\u201d\u9009\u9879\u5361\u4e0b\uff0c\u5355\u51fb\u201c\u65b0\u5efa\u201d\u3002 \u521b\u5efa\u81ea\u5b9a\u4e49\u5de5\u5177\uff1a\u5728\u201c\u6807\u9898\u201d\u5b57\u6bb5\u4e2d\uff0c\u8f93\u5165\u201cC [&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-20925","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20925","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=20925"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20925\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}