{"id":298,"date":"2006-11-09T13:27:09","date_gmt":"2006-11-09T05:27:09","guid":{"rendered":"https:\/\/t.n-years.com\/?p=298"},"modified":"2021-01-06T18:50:38","modified_gmt":"2021-01-06T10:50:38","slug":"%e8%81%8c%e4%b8%9aundef%e6%8c%87%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/t.n-years.com\/?p=298","title":{"rendered":"[\u804c\u4e1a]#undef \u6307\u4ee4"},"content":{"rendered":"<p><TABLE cellSpacing=0 cellPadding=5 width=\"100%\" border=0><br \/>\n<TBODY><br \/>\n<TR><br \/>\n<TD><FONT color=#18188c size=4><STRONG>#undef&nbsp;\u6307\u4ee4<\/STRONG><\/FONT><\/TD><\/TR><br \/>\n<TR><br \/>\n<TD><br \/>\n<CENTER><B><FONT color=#000080><FONT size=+2>#undef \u6307\u4ee4<\/FONT><\/FONT><\/B><\/CENTER><br \/>\n<HR width=\"100%\"><br \/>\n<FONT size=-1>\u8be5\u6307\u4ee4\u53ef\u53d6\u6d88\u4ee5\u524d\u5b8f\u7684\u5b9a\u4e49\u3002\u8be5\u6307\u4ee4\u7684\u5f62\u5f0f\u4e3a <\/FONT><br \/>\n<P>#undef <FONT color=#cc0000>\u6807\u8bc6\u7b26<\/FONT> <\/P><br \/>\n<P><FONT size=-1>\u5176\u4e2d\uff0c\u6807\u8bc6\u7b26\u662f\u4e00\u4e2a\u5b8f\u540d\u79f0\u3002\u5982\u679c\u6807\u8bc6\u7b26\u5f53\u524d\u6ca1\u6709\u88ab\u5b9a\u4e49\u6210\u4e00\u4e2a\u5b8f\u540d\u79f0\uff0c\u90a3\u4e48\u5c31\u4f1a\u5ffd\u7565\u8be5\u6307\u4ee4\u3002<\/FONT> <\/P><br \/>\n<P><FONT size=-1>\u4e00\u65e6\u5b9a\u4e49\u9884\u5904\u7406\u5668\u6807\u8bc6\u7b26\uff0c\u5b83\u5c06\u4fdd\u6301\u5df2\u5b9a\u4e49\u72b6\u6001\u4e14\u5728\u4f5c\u7528\u57df\u5185\uff0c\u76f4\u5230\u7a0b\u5e8f\u7ed3\u675f\u6216\u8005\u4f7f\u7528<\/FONT><FONT color=#cc0000>#undef<\/FONT><FONT size=-1><FONT color=#cc0000> <\/FONT>\u6307\u4ee4\u53d6\u6d88\u5b9a\u4e49\u3002 <\/FONT><\/P><br \/>\n<P><FONT size=-1>\u5728\u6b64\u7a0b\u5e8f\u4e2d\uff0c\u6211\u4eec\u5c06\u53d6\u6d88\u5728\u5148\u524d\u7a0b\u5e8f\u4e2d\u5bf9\u9884\u5904\u7406\u5668\u7684\u5b9a\u4e49\u3002 <\/FONT><\/P><br \/>\n<P><FONT color=#cc0000>\uff03i nclude&lt;iostream.h&gt;<\/FONT> <BR><FONT color=#cc0000>\uff03i nclude&lt;conio.h&gt;<\/FONT> <BR><FONT color=#cc0000>\uff03i nclude&lt;string.h&gt;<\/FONT> <\/P><br \/>\n<P><FONT color=#cc0000>#define MAX 5 <\/FONT><BR><FONT color=#cc0000>#undef MAX <\/FONT><\/P><br \/>\n<P><FONT color=#cc0000>void main() <\/FONT><BR><FONT color=#cc0000>{ <\/FONT><BR><FONT color=#cc0000>&nbsp; char name[MAX]=\"abcde\"; <\/FONT><BR>&nbsp; <FONT color=#cc0000>cout&lt;&lt;\"MAX = \"&lt;&lt;MAX&lt;&lt;endl; <\/FONT><BR><BR>&nbsp; <FONT color=#cc0000>for(int i=0;i&lt;MAX;i++) <\/FONT><BR>&nbsp;&nbsp;&nbsp; <FONT color=#cc0000>cout&lt;&lt;name[i]&lt;&lt;\" \"; <\/FONT><BR>&nbsp; <FONT color=#cc0000>cout&lt;&lt;endl; <\/FONT><BR><FONT color=#cc0000>} <\/FONT><\/P><br \/>\n<P><FONT size=-1>\u60a8\u5c06\u5f97\u5230\u5982\u4e0b\u9519\u8bef\u6d88\u606f <\/FONT><\/P><br \/>\n<P><FONT color=#cc0000><FONT size=-1>\u672a\u5b9a\u4e49\u7b26\u53f7 <FONT face=Arial,Helvetica>'<\/FONT><\/FONT>MAX<FONT face=Arial,Helvetica>'<\/FONT> <\/FONT><BR><FONT size=-1><FONT color=#cc0000>\u521d\u59cb\u503c\u8bbe\u5b9a\u9879\u592a\u591a <\/FONT><\/FONT><\/P><br \/>\n<P><FONT size=-1>\u5728\u6b64\u7a0b\u5e8f\u4e2d\u5bf9 <\/FONT>MAX<FONT size=-1> <FONT face=Arial,Helvetica><\/FONT>\u5b9a\u4e49\u540e\u53c8\u53d6\u6d88\u4e86\u5b9a\u4e49\u3002\u7f16\u8bd1\u8be5\u7a0b\u5e8f\u65f6\u5c06\u62a5\u9519\u3002\u7531\u4e8e\u672a\u5b9a\u4e49 <\/FONT>MAX\uff0cchar name[MAX] <FONT size=-1>\u7684\u6570\u7ec4\u5927\u5c0f\u4e0d\u53ef\u7528\uff0c\u56e0\u6b64\u7f16\u8bd1\u5668\u53d1\u51fa\u7b2c\u4e8c\u4e2a\u9519\u8bef\u6d88\u606f\u3002 <\/FONT><BR><\/P><\/TD><\/TR><\/TBODY><\/TABLE><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#undef&nbsp;\u6307\u4ee4 #undef \u6307\u4ee4 \u8be5\u6307\u4ee4\u53ef\u53d6\u6d88\u4ee5\u524d\u5b8f\u7684\u5b9a\u4e49\u3002\u8be5\u6307\u4ee4\u7684\u5f62\u5f0f\u4e3a #undef \u6807\u8bc6&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/t.n-years.com\/?p=298\">\u9605\u8bfb\u66f4\u591a<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-24"],"_links":{"self":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":1,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":2509,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions\/2509"}],"wp:attachment":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}